diff --git a/bsc/garlic/argv.nix b/bsc/garlic/argv.nix new file mode 100644 index 0000000..5978cb3 --- /dev/null +++ b/bsc/garlic/argv.nix @@ -0,0 +1,25 @@ +{ + stdenv +}: + +{ + app +, argv # bash array as string, example: argv=''(-f "file with spaces" -t 10)'' +}: + +stdenv.mkDerivation { + inherit argv; + name = "${app.name}-argv"; + preferLocalBuild = true; + phases = [ "installPhase" ]; + dontPatchShebangs = true; + installPhase = '' + mkdir -p $out/bin + cat > $out/bin/run < $out/bin/run < $out/bin/run <