4 ms·
For flake.nix, you add that to the inputs, for example, call it `nixpkgs-old`, and then reference the package of interest with: `nixpkgs-old.legacyPacakges.lin
by breakds 3y ago
For flake.nix, you add that to the inputs, for example, call it `nixpkgs-old`, and then reference the package of interest with:
`nixpkgs-old.legacyPacakges.linux-x86_64.node`, or something like below
let pkgs = import nixpkgs-old {
system = "linux-x86_64";
} in pkgs.mkShell {
packages = [ pkgs.node ];
}
- jljljl 3y agoYou can use 2 spaces after a newline to format it: let pkgs = import nixpkgs-old { system = "linux-x86_64"; } in pkgs.mkShell { packages = [ pkgs.node ]; } Combine this with the input statement in the comment below to get a decent flake. You can mix and match multiple inputs if you want to install different versions of packages