fix(nix): fix impure nix build
This commit is contained in:
parent
19c196087b
commit
cf26e6b075
|
@ -1230,7 +1230,7 @@ If IMPURE is t, then allow impure builds."
|
||||||
(with-temp-message (format "Building \"%s\" ..." out)
|
(with-temp-message (format "Building \"%s\" ..." out)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(let* ((args `("build" "--no-link" "--print-out-paths"
|
(let* ((args `("build" "--no-link" "--print-out-paths"
|
||||||
,@(if impure "--impure") ,out))
|
,@(when impure '("--impure")) ,out))
|
||||||
(status (apply #'call-process nix-executable nil
|
(status (apply #'call-process nix-executable nil
|
||||||
(list (current-buffer) nil) nil args)))
|
(list (current-buffer) nil) nil args)))
|
||||||
(when (eql status 0)
|
(when (eql status 0)
|
||||||
|
|
Loading…
Reference in a new issue