all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steve George <steve@futurile.net>
To: "Simen Endsjø" <contact@simendsjo.me>
Cc: help-guix@gnu.org
Subject: Re: Combine outputs from several packages to a shared location
Date: Sat, 2 Nov 2024 14:28:29 +0000	[thread overview]
Message-ID: <flmrdtpjgoyjvim4t5pfnj5rfud6xwzqipbwxfucbmljxdwh3w@3l4dzw7bl57v> (raw)
In-Reply-To: <877c9ulhaj.fsf@simendsjo.me>

Hi Simen,

I'm aware of a union build in Guix, but unfortunately have never used it:

https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/union.scm

I recalled it because of this blog post which talks about union packages:

https://trivialfis.github.io/linux/2018/06/10/Using-guix-for-development.html

Hope it helps!

Steve / Futurile

On 26 Oct, Simen Endsjø wrote:
> 
> Hi, I'm trying to package some software where I combine various packages into a
> single location. I'll try to explain...
> 
> I have a package P. This package contains a binary, B, some libraries S, and
> some libraries R. These are usually packages together, in which case things just
> work, but I need to support adding various versions of some of these packages.
> 
> E.g. I add P@2:out to get everything for that version, but additionally P@1:S
> and P@1:R.  B can only be added once as it is at the same location, and we
> usually use the latest version, but S and R have versioned subdirectories. This
> means S@1 is located at /s/1 and R@2 is located at /r/2.
> 
> Given the shell with P@2:out, P@1:S, P@1:R, I should get a structure like
> 
> /B
> /s/1
> /s/2
> /r/1
> /r/2
> 
> This is the structure you get when installing the packages on other distros and
> operating systems.
> 
> But how can I create such a "virtual package"? I also need to register this
> virtual package path in an environment variable so B is able to locate
> all S and R versions, P_ROOT.
> 
> Right now only :out works as I cannot get the locations of other P:S and P:R
> known to B. The single environment variable can only point at a single path, and
> that path must include the s and r directories with all installed versions.
> 
> How can I solve this problem?
> Are there other packages which does something similar I might look at?
> 
> Regards Simen
> 


      reply	other threads:[~2024-11-02 14:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-26 20:51 Combine outputs from several packages to a shared location Simen Endsjø
2024-11-02 14:28 ` Steve George [this message]

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

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

  git send-email \
    --in-reply-to=flmrdtpjgoyjvim4t5pfnj5rfud6xwzqipbwxfucbmljxdwh3w@3l4dzw7bl57v \
    --to=steve@futurile.net \
    --cc=contact@simendsjo.me \
    --cc=help-guix@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.