diff options
Diffstat (limited to 'guix/utils.scm')
-rw-r--r-- | guix/utils.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/utils.scm b/guix/utils.scm index 3e334f9fa6..287a6d4f3a 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -458,7 +458,8 @@ starting from the right of S." (define %nixpkgs-directory (make-parameter ;; Capture the build-time value of $NIXPKGS. - (compile-time-value (getenv "NIXPKGS")))) + (or (compile-time-value (getenv "NIXPKGS")) + (getenv "NIXPKGS")))) (define* (nixpkgs-derivation attribute #:optional (system (%current-system))) "Return the derivation path of ATTRIBUTE in Nixpkgs." |