summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/no/nodejsInstallExecutables/package.nix
blob: fe5ae5ca98251333c817f0a23eac7ddf3069f96b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  lib,
  makeSetupHook,
  installShellFiles,
  makeWrapper,
  nodejs,
  jq,
}:

makeSetupHook {
  name = "nodejs-install-executables";
  propagatedBuildInputs = [
    installShellFiles
    makeWrapper
  ];
  substitutions = {
    hostNode = "${nodejs}/bin/node";
    jq = "${jq}/bin/jq";
  };
  meta.license = lib.licenses.mit;
} ./hook.sh