Re:My Python Development Environment, 2020 Edition
by huevo5050 on Tuesday November 12, 2019 @06:27AM
(#21513280)
I think its a coincidence. Check nodejs commit history: https://github.com/NixOS/nixpkgs/commits/f3282c8d1e0ce6ba5d9...
there are minor versions also
[ Parent
| on HN ]
Re:My Python Development Environment, 2020 Edition
by s_kilk on Tuesday November 12, 2019 @06:41AM
(#21513339)
Right, so if I'm understanding correctly, I'd need to pin the whole nix-pkgs system to the particular git revision which contains the version I need?
Re:My Python Development Environment, 2020 Edition
by huevo5050 on Tuesday November 12, 2019 @06:54AM
(#21513388)
That's it, also you can cherry pick different software from different git revisions.
Re:My Python Development Environment, 2020 Edition
by silviogutierrez on Tuesday November 12, 2019 @10:37AM
(#21514889)
Do you have any public examples of doing this? Or docs?
Closest I found was to pin the nix-channel entirely, but not different components to different versions.
Re:My Python Development Environment, 2020 Edition
by soraminazuki on Tuesday November 12, 2019 @07:33PM
(#21519878)
You could do something like:
let pinnedPkgs = import (builtins.fetchTarball {...}) {};
node = pinnedPkgs.nodejs-10_x;
to refer to a specific version of node.
Re:My Python Development Environment, 2020 Edition
by silviogutierrez on Tuesday November 12, 2019 @10:31PM
(#21520960)
Thanks that helps.
I've mostly stuck to nix-shell -p foo bar baz to setup my environments. It's holding me back and I should pull the trigger on a shell.nix file, just gotta learn the language.