guix-devel
[Top][All Lists]
Advanced

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

Re: How do I reference the src checkout in a package?


From: Zhu Zihao
Subject: Re: How do I reference the src checkout in a package?
Date: Sun, 30 Oct 2022 12:47:13 +0800
User-agent: mu4e 1.8.9; emacs 29.0.50

Try `#$(package-source this-package)` in the builder gexp.

Or you can try `(assoc-ref inputs "source")`, but be careful, this is
undocumented behaviour and it may change without notice and break your
recipes.

OT: it's better to ask for help in help-guix@gnu.org :)

jgart <jgart@dismail.de> writes:

> On Sat, 29 Oct 2022 23:05:50 -0500 jgart <jgart@dismail.de> wrote:
>
> For example, nix allows you to reference the source checkout with the $src 
> variable:
>
> https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/compilers/carp/default.nix#L38


-- 
Retrieve my PGP public key:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao

Attachment: signature.asc
Description: PGP signature


reply via email to

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