branch: elpa/nix-mode commit 66206cab276c0f4d1c84e77ba2a67ed6a46b2d9c Author: Matthew Bauer <mjbaue...@gmail.com> Commit: Matthew Bauer <mjbaue...@gmail.com>
Support integer for flakes experimental-features fixed in https://github.com/NixOS/nix/commit/2ffc5a45422522122c65cf71a2958e4b891e8134, but worth supporting Nix 2.5-2.7 that have this bug. --- nix.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nix.el b/nix.el index c95283402e..73733d3f3f 100644 --- a/nix.el +++ b/nix.el @@ -198,8 +198,10 @@ OPTIONS a list of options to accept." "Whether Nix is a version with Flakes support." ;; earlier versions reported as 3, now it’s just nix-2.4 (and (nix-is-24) - (let-alist (nix-show-config) - (seq-contains-p .experimental-features.value "flakes")))) + (let-alist (nix-show-config) + (or + (seq-contains-p .experimental-features.value 1) + (seq-contains-p .experimental-features.value "flakes"))))) ;;;###autoload (defun pcomplete/nix ()