-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
revise pinning nixpkgs #303
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
After writing "I keep a note for myself that the “pinning reference” needs some work." i made this draft today. It is mostly based on nix.dev material written by @domenkozar I would like to know if you agree this PR is going into right direction (as outlined by @fricklerhandwerk ). |
- Using the command line parameter `-I URL` to most of commands like `nix-build`, `nix-shell`, etc <!-- link to ??? tutorial --> | ||
- Using [builtins.fetchTarball](https://nixos.org/manual/nix/stable/expressions/builtins.html) function that fetches the `URL` at evaluation time <!-- more precise link would be nice --> | ||
|
||
Possible `URL` values are: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URL is a bit inaccurate since it can also be a local path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The URL
is referring here only to the use in nixpkgs=URL like a variable name. I think it is clear within the context?
source/tutorials/pinning-nixpkgs.md
Outdated
- Pinned to a specific commit: `https://github.com/NixOS/nixpkgs/archive/addcb0dddf2b7db505dae5c38fceb691c7ed85f9.tar.gz` | ||
- Using latest channel, meaning all tests have passed: `http://nixos.org/channels/nixos-21.05/nixexprs.tar.xz` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that these aren't equivalent. For one, the nixexprs.tar.xz
has the programs.sqlite
file which contains an index for which package contains which binaries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for pointing out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which are not equivalent?
commit tar.gz and nixos.org tar.gz ?
or
nixos.org and github.com tar.gz that are referring to a release?
remove pinning nixpkgs reference separate pinning nixpkgs from dependency management using niv
Co-authored-by: Silvan Mosberger <github@infinisil.com>
Co-authored-by: Silvan Mosberger <github@infinisil.com>
remove pinning nixpkgs reference
separate pinning nixpkgs from dependency management using niv