Skip to content

Conversation

@johnhamelink
Copy link

@johnhamelink johnhamelink commented Jun 25, 2024

This change to the nix-is-24 predicate allows nix.el to parse nix --version when the underlying nix executable is actually lix.

This change to the nix-is-24 predicate allows nix.el to parse `nix --version` when the underlying `nix` executable is actually lix.
@johnhamelink johnhamelink changed the title Allow nix-flakes to work with Lix Allow nix-flake-dispatch to work with Lix Jun 25, 2024
@ed9w2in6
Copy link

I tried and your fix works but I don't think Lix's version has the same meaning as Nix's version.
Correct me if I am wrong on this.

If I am correct on this then I think the right way to do this should be setting a "compatible" version for
nix-version. In my config I did this:

(setq nix-version "nix (Nix) 2.4")

Which I believe is a more sane way to handle it, as it supports any other forks (determinate, tvix, lix, etc.)

In that case work need to be done on add more documentation and hints to guide users to make such a config.

@johnhamelink
Copy link
Author

@ed9w2in6 thanks for this - I haven't been using lix for a few months as I had a blocking issue I didn't have time to get to the bottom of, but I will try out your suggestion in the coming days as I switch back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants