fix(nix): fix impure nix build

This commit is contained in:
Kiana Sheibani 2024-08-14 06:22:45 -04:00
parent 19c196087b
commit cf26e6b075
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1230,7 +1230,7 @@ If IMPURE is t, then allow impure builds."
(with-temp-message (format "Building \"%s\" ..." out)
(with-temp-buffer
(let* ((args `("build" "--no-link" "--print-out-paths"
,@(if impure "--impure") ,out))
,@(when impure '("--impure")) ,out))
(status (apply #'call-process nix-executable nil
(list (current-buffer) nil) nil args)))
(when (eql status 0)