writers.writeJS: pass arguments to script
This commit is contained in:
parent
39f6f5e32e
commit
85a36f9146
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue