2 ms·
Nice writeup, just wanted to comment in case you hadn't thought of it, that you can achieve a nix-shebang with flakes by adding a wrapper script. e.g. foo_wrapp
by JamesSwift 4y ago
Nice writeup, just wanted to comment in case you hadn't thought of it, that you can achieve a nix-shebang with flakes by adding a wrapper script. e.g. foo_wrapper.sh:
#!/usr/bin/env bash
readonly gitsha="..."
nix shell nixpkgs/${gitsha}#bash nixpkgs/${gitsha}#{foo-pkg} nixpkgs/${gitsha}#{bar-pkg} -c bash foo.sh $@