[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search paths in packages

From: Ludovic Courtès
Subject: Re: Search paths in packages
Date: Mon, 09 Oct 2017 18:31:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hi Roel,

Roel Janssen <address@hidden> skribis:

> I have a question about how search paths are handled in Guix.
> So, I have a package that tries to set an environment variable:
> So, I tried:
> (native-search-paths
>      (list (search-path-specification
>             (variable "DRMAA_LIBRARY_PATH")
>             (files '("lib/")))))

If you want to match a regular file instead of a directory (the
default), you must write:

    (variable "DRMAA_LIBRARY_PATH")
    (files '("lib/"))
    (file-type 'regular))

This will match all the lib/ files found in the environment.

> But after running:
> $ guix environment --container --ad-hoc <the-package> bash coreutils
> ... the DRMAA_LIBRARY_PATH is not set.

That’s because none of the packages listed after --ad-hoc contains a
lib/ file.

You can do this experiment with GIT_SSL_CAINFO:

--8<---------------cut here---------------start------------->8---
$ guix environment -C --ad-hoc git coreutils -- env |grep GIT
$ guix environment -C --ad-hoc git coreutils nss-certs -- env |grep GIT
--8<---------------cut here---------------end--------------->8---

In the first run, there was no etc/ssl/ca-certificates.crt file, so
GIT_SSL_CAINFO was undefined.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]