clhodapp / nix-runner

Tidy shell shebangs with nix flakes
GNU Affero General Public License v3.0
45 stars 3 forks source link

Compare with alternatives? #4

Open manveru opened 2 years ago

manveru commented 2 years ago

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
clhodapp commented 2 years ago

Good idea

tomberek commented 7 months ago

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

clhodapp commented 7 months ago

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