3
0
Fork 0
forked from mirrors/nixpkgs

writers.writeJS: pass arguments to script

This commit is contained in:
lassulus 2022-10-11 20:15:52 +02:00
parent 39f6f5e32e
commit 85a36f9146

View file

@ -207,7 +207,7 @@ let
};
in writeDash name ''
export NODE_PATH=${node-env}/lib/node_modules
exec ${pkgs.nodejs}/bin/node ${pkgs.writeText "js" content}
exec ${pkgs.nodejs}/bin/node ${pkgs.writeText "js" content} "$@"
'';
# writeJSBin takes the same arguments as writeJS but outputs a directory (like writeScriptBin)