3 ms·
> it lets you out dependencies directly in a comment on top of a script and it will download and run with them automatically, without poisoning any system setti
by mananaysiempre 3y ago
> it lets you out dependencies directly in a comment on top of a script and it will download and run with them automatically, without poisoning any system settings
The old-style nix-shell command in Nix can do this[1] for every language and package Nixpkgs supports, although it’s not that often used because it ties your shebangs to Nix. (An equivalent feature for the new CLI is a work in progress[2].)
[1] https://nixos.org/manual/nix/stable/command-ref/nix-shell.html#use-as-a--interpreter https://nixos.org/manual/nix/stable/command-ref/nix-shell.ht...
[2] https://github.com/NixOS/nix/pull/5189 https://github.com/NixOS/nix/pull/5189