Hacker News new | ask | show | jobs
by shared4you 4023 days ago
NixOS has been discussed many times on HN already. However, Nix 1.9 was released today (/yesterday for the some):

Release Notes: https://nixos.org/releases/nix/nix-1.9/manual/#ssec-relnotes...

Downloads: https://hydra.nixos.org/release/nix/nix-1.9

1 comments

> nix-shell can now be used as a #!-interpreter. This allows you to write scripts that dynamically fetch their own dependencies. For example, here is a Haskell script that, when invoked, first downloads GHC and the Haskell packages on which it depends:

Wow, that sounds super useful! I'm finding more and more default.nix and shell.nix files scattered through my hard drive, along with wrapper scripts for invoking nix-shells.

I can probably replace a lot of these with appropriate shebangs :)

This is a great idea. It would be cool if Docker supported something like this.