From 85a36f91469057daaef5c2d64baa4efed1774903 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 11 Oct 2022 20:15:52 +0200 Subject: [PATCH] writers.writeJS: pass arguments to script --- pkgs/build-support/writers/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix index 167df5635c91..e964ca6b19c0 100644 --- a/pkgs/build-support/writers/default.nix +++ b/pkgs/build-support/writers/default.nix @@ -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)