Skip to content

Commit

Permalink
Fix nix-system in nix-2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed May 23, 2021
1 parent 04d9a86 commit e4844f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nix.el
Expand Up @@ -61,7 +61,9 @@
(defun nix-system ()
"Get the current system tuple."
(with-temp-buffer
(call-process nix-executable nil (list t nil) nil "eval" "--raw" "(builtins.currentSystem)")
(if (nix-is-24)
(call-process nix-executable nil (list t nil) nil "eval" "--impure" "--raw" "--expr" "(builtins.currentSystem)")
(call-process nix-executable nil (list t nil) nil "eval" "--raw" "(builtins.currentSystem)"))
(buffer-string)))

(defvar nix-version nil)
Expand Down

0 comments on commit e4844f7

Please sign in to comment.