about summary refs log tree commit diff
path: root/pkgs/by-name/no/nodejsInstallExecutables/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/no/nodejsInstallExecutables/package.nix')
-rw-r--r--pkgs/by-name/no/nodejsInstallExecutables/package.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/by-name/no/nodejsInstallExecutables/package.nix b/pkgs/by-name/no/nodejsInstallExecutables/package.nix
new file mode 100644
index 0000000000000..8403cf8881d61
--- /dev/null
+++ b/pkgs/by-name/no/nodejsInstallExecutables/package.nix
@@ -0,0 +1,19 @@
+{
+  makeSetupHook,
+  installShellFiles,
+  makeWrapper,
+  nodejs,
+  jq,
+}:
+
+makeSetupHook {
+  name = "nodejs-install-executables";
+  propagatedBuildInputs = [
+    installShellFiles
+    makeWrapper
+  ];
+  substitutions = {
+    hostNode = "${nodejs}/bin/node";
+    jq = "${jq}/bin/jq";
+  };
+} ./hook.sh