diff options
Diffstat (limited to 'guix/utils.scm')
-rw-r--r-- | guix/utils.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/utils.scm b/guix/utils.scm index 66563c727e..cbd51fae73 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -450,8 +450,9 @@ starting from the right of S." (define (nixpkgs-derivation attribute) "Return the derivation path of ATTRIBUTE in Nixpkgs." - (let* ((p (open-pipe* OPEN_READ "nix-instantiate" "-A" - attribute (%nixpkgs-directory))) + (let* ((p (open-pipe* OPEN_READ (or (getenv "NIX_INSTANTIATE") + "nix-instantiate") + "-A" attribute (%nixpkgs-directory))) (l (read-line p)) (s (close-pipe p))) (and (zero? (status:exit-val s)) |