all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A single reference to installed non-binaries
@ 2021-08-17 11:31 Phil Beadling
  2021-08-17 14:01 ` Edouard Klein
  0 siblings, 1 reply; 8+ messages in thread
From: Phil Beadling @ 2021-08-17 11:31 UTC (permalink / raw)
  To: help-guix

Hi all,

I have some platform independent files I have created a package for using
copy-build-system.  This works great but I've come across situation I don't
know how to handle.

Let's call the package I've made package-x, and let's say that package-y
(which is for arguments sake is a python build system) lists package-x as a
propagated-input.

package-x is installing a directory, let's say "bar" from the source into
"share/foo/"

'(#:install-plan '(("bar" "share/foo/")))

Now whenever we install package-y, I should expect it's "share" directory
to contain foo/bar - and I find it to be the case.

No suprises so far.

The problem comes when I want to reference a file under "bar" in the source
code of package-y.

Depending on whether I install package-y via "guix install package-y -p
/path/to/profile" or via "guix environment --ad-hoc package-y" there is no
single reference to the bar directory that covers every use-case.

When I "install" the package - I can reference it using $GUIX_PROFILE
But as for example a developer when I'm coding package-y I would reference
it using $GUIX_ENVIRONMENT

This means that any source that references it must presumably attempt to
read it from $GUIX_ENVIRONMENT, and then on failure fallback to
$GUIX_PROFILE.

This feels a bit brittle to me, and I'm hoping I've missed a trick, and
there's a better way to singluarly reference the location of a share
directory from any GUIX profile or environment?

Note the problem doesn't happen with binaries as the order of precedence in
the PATH variable avoids the issue.

Any ideas?

Thanks,
Phil.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-17 20:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-17 11:31 A single reference to installed non-binaries Phil Beadling
2021-08-17 14:01 ` Edouard Klein
2021-08-17 15:45   ` Phil
2021-08-17 18:42     ` Edouard Klein
2021-08-17 20:42       ` Phil
2021-08-17 17:55   ` Leo Famulari
2021-08-17 18:49     ` Setting TZDIR (was Re: A single reference to installed non-binaries) Edouard Klein
2021-08-17 20:20       ` Leo Famulari

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.