Hacker News new | ask | show | jobs
by soraminazuki 2415 days ago
You could do something like:

    let pinnedPkgs = import (builtins.fetchTarball {...}) {};
        node = pinnedPkgs.nodejs-10_x;
to refer to a specific version of node.

https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs

1 comments

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.