diff options
author | Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> | 2020-09-04 22:58:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 22:58:36 +0200 |
commit | 2b575c5f1f287293a5dbfab3e9963519e713fd3b (patch) | |
tree | 7ce7e0ae165ad97f3930231f274c28b66b5fca91 /doc | |
parent | f55650be0c080741560c5d613e36dbe55ed57ac9 (diff) | |
parent | c67bcd23d487f5a1d23037618504a6744928d34b (diff) |
Merge pull request #96963 from doronbehar/doc/nodejs
doc: nodejs: Update override example to use overlays
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/node.section.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/languages-frameworks/node.section.md b/doc/languages-frameworks/node.section.md index c1f4294711a1..2120adfc0b49 100644 --- a/doc/languages-frameworks/node.section.md +++ b/doc/languages-frameworks/node.section.md @@ -25,12 +25,13 @@ build system it uses. Here are some examples: After you have identified the correct system, you need to override your package expression while adding in build system as a build input. For example, `dat` -requires `node-gyp-build`, so we override its expression in `default.nix`: +requires `node-gyp-build`, so [we override](https://github.com/NixOS/nixpkgs/blob/32f5e5da4a1b3f0595527f5195ac3a91451e9b56/pkgs/development/node-packages/default.nix#L37-L40) its expression in [`default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/node-packages/default.nix): ```nix -dat = nodePackages.dat.override (oldAttrs: { - buildInputs = oldAttrs.buildInputs ++ [ nodePackages.node-gyp-build ]; -}); + dat = super.dat.override { + buildInputs = [ self.node-gyp-build pkgs.libtool pkgs.autoconf pkgs.automake ]; + meta.broken = since "12"; + }; ``` To add a package from NPM to nixpkgs: |