Skip to content

Make nix shell lock to a <nixpkgs> version #302

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

Open
Fresheyeball opened this issue Sep 11, 2017 · 0 comments
Open

Make nix shell lock to a <nixpkgs> version #302

Fresheyeball opened this issue Sep 11, 2017 · 0 comments

Comments

@Fresheyeball
Copy link

Fresheyeball commented Sep 11, 2017

Just a suggestion. But sometimes I use the --shell option like so cabal2nix ./. --shell > shell.nix and it works great. Then I run nix-shell for that project months later, and it fails (since the nixpkgs version has changed). It would be nice if nixpkgs ? import <nixpkgs> {} was made more robust to specify the version of <nixpkgs> it's currently using. Something like:

{ nixpkgs ? import (builtins.fetchTarBall "github.com/NixOS/nixpkgs/archive/<the version>.tag.gz") {}, ...
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

1 participant