nix-runner icon indicating copy to clipboard operation
nix-runner copied to clipboard

Compare with alternatives?

Open manveru opened this issue 3 years ago • 3 comments

From a quick search I found:

  • nix-shell of course
  • https://github.com/bennofs/nix-script
  • https://github.com/madjar/nixbang

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

manveru avatar Jul 16 '22 13:07 manveru

Good idea

clhodapp avatar Jul 17 '22 23:07 clhodapp

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

tomberek avatar Nov 27 '23 19:11 tomberek

@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.

clhodapp avatar Nov 27 '23 20:11 clhodapp