2 ms·
Can't you just pin pkgs to particular commit, so everything will have the version it did as of that commit?
by OJFord 3y ago
Can't you just pin pkgs to particular commit, so everything will have the version it did as of that commit?
- aidenn0 3y agoRight, but traditional nix doesn't make that easy (which is why niv and flakes exist).
- OJFord 3y agoI suppose you're just saying it's easier than this with flakes, but this isn't a flake is it? (Honestly so confused about it all, looking at trying out nix again after toying with it briefly years ago.) https://nix.dev/guides/recipes/sharing-dependencies#complete-example https://nix.dev/guides/recipes/sharing-dependencies#complete...
- aidenn0 3y agoThat is not with flakes, nor does it pin nixpkgs. It tracks nixpkgs-23.11 Now at the bottom it links to an example of pinning without using flakes, but the page you linked directly does not pin nixpkgs. Flakes pin by default, and defaults matter. Using flakes, anything that isn't explicitly listed with a hash to ensure it's unchanged must be explicitly listed as an input, and a lock file for the inputs is automatically generated.