summaryrefslogtreecommitdiff
path: root/doc/hooks/nodejs-install-executables.section.md
blob: 7cf1f9ef20e65dd2250d186886249a4e3ca23b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# nodejsInstallExecutables {#nodejs-install-executables}

Hook for wrapping Node.js executables.
Primarily created for a multi-language environment.

## Examples {#nodejs-install-executables-example}

[](#npm-build-hook-example-snippet)

## Variables controlling `nodejsInstallExecutables` {#nodejs-install-executables-variables}

### `nodejsInstallExecutables` Exclusive Variables {#nodejs-install-executables-exclusive-variables}

#### `makeWrapperArgs` {#nodejs-install-executables-wrapper-args}

Flags to pass to the call to [`makeWrapper`](#fun-makeWrapper).
To avoid double-wrapping, this flag can also be accessed in Bash.

```nix
stdenv.mkDerivation (finalAttrs: {
  #...
  dontWrapGApps = true;

  postInstall = ''
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';
  #...
})
```