Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix flakes support #34

Closed
zimbatm opened this issue May 28, 2020 · 4 comments
Closed

Nix flakes support #34

zimbatm opened this issue May 28, 2020 · 4 comments

Comments

@zimbatm
Copy link
Contributor

zimbatm commented May 28, 2020

It would be great if it was possible to pin what version of nix is being installed, and then be able to install the nix flakes edition through this mechanism.

I think that the nix publishing needs to be extended to also publish install scripts for the flakes branch first.

@domenkozar
Copy link
Member

That's doable via install_url option, but you'd have to generate the installer script.

If we'd use Cachix on github.com/NixOS/nix I would be able to get github actions to generate installer script for each PR.

The main challenge is that you need to first build binary tarball for platforms and then use a stable url to generate the installer.

@domenkozar
Copy link
Member

See also cachix/cachix-action#47

@zimbatm
Copy link
Contributor Author

zimbatm commented Aug 22, 2020

For other users: flakes install scripts can be found here: https://github.com/numtide/nix-flakes-installer

@domenkozar
Copy link
Member

This is now supported in master. Ideally upstream would publish all Nix releases, but that's out of scope for this action.

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

No branches or pull requests

2 participants