mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
19 lines
300 B
Nix
19 lines
300 B
Nix
{
|
|
makeSetupHook,
|
|
installShellFiles,
|
|
makeWrapper,
|
|
nodejs,
|
|
jq,
|
|
}:
|
|
|
|
makeSetupHook {
|
|
name = "nodejs-install-executables";
|
|
propagatedBuildInputs = [
|
|
installShellFiles
|
|
makeWrapper
|
|
];
|
|
substitutions = {
|
|
hostNode = "${nodejs}/bin/node";
|
|
jq = "${jq}/bin/jq";
|
|
};
|
|
} ./hook.sh
|