unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jan <tona_kosmicznego_smiecia@interia.pl>
To: guix-devel@gnu.org
Subject: Re: The problem of packaging Minetest mods/games
Date: Wed, 20 May 2020 18:49:44 +0200	[thread overview]
Message-ID: <20200520184944.340f0b1b@kompiuter> (raw)
In-Reply-To: <20200519230549.16a299b5@kompiuter>

Hi,

Thanks everyone for suggestions, I will check how it works in practice
and look for the environment variables.

Surprisingly I had an idea yesterday - what if we threat the minetest
package as an interpreter, which it actually is, because it interprets
lua scripts, while treating mods and games as files it
interprets. This way minetest doesn't require minetest-data as
a dependency anymore, on the other hand minetest-data requires minetest
to run, which is actually how it is in reality.

Following this idea, I removed the minetest-data dependency from the
minetest package and added minetest as a propagated input of
minetest-data. I installed the new minetest-data package and it worked!

This way minetest doesn't get rebuilt every time a modification/game is
added.

I could rename the packages:
minetest -> minetest-base/core (non-public package)
minetest-data -> minetest (public package)

This way installing minetest installs both the game's core and the
default game.

What do you think about this solution?



Jan Wielkiewicz


  parent reply	other threads:[~2020-05-20 16:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 21:05 The problem of packaging Minetest mods/games Jan
2020-05-19 22:34 ` Julien Lepiller
2020-05-20  0:47 ` Ricardo Wurmus
2020-05-20 16:49 ` Jan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-19 22:36 Leo Prikler
2020-05-20  3:46 ` Mike Gerwitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200520184944.340f0b1b@kompiuter \
    --to=tona_kosmicznego_smiecia@interia.pl \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).