clhodapp/nix-runner

Compare with alternatives?

manveru opened this issue · 3 comments

From a quick search I found:

AFAIK the biggest difference is that you cannot easily specify the nixpkgs version (other than with pure nix-shell)
here's what I'm using right now, for example:

#! /usr/bin/env nix-shell
#! nix-shell -i ruby -p ruby_3_1 nix
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/71d7a4c037dc4f3e98d5c4a81b941933cf5bf675.tar.gz

Good idea

I was not aware of this project while working on the nix-command shebang.... feedback and thoughts? Proposals or ideas?

@tomberek I'll play around with the new built-in shebang support once a cached build of nix 2.19 is easily available from nixpkgs and let you know if anything stands out.