diff options
author | Terje Larsen <terlar@gmail.com> | 2020-05-31 18:18:15 +0200 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-08-20 20:51:03 +0200 |
commit | cd9b4e02d0be7d215cb3a8bd383d52fd66b29d97 (patch) | |
tree | 9501362bdc15f70cacab928e04eaa7dd8409ce12 /pkgs | |
parent | 20e62aa580c2ed83b1a1b9caf0bd8431c0ab3666 (diff) |
nodePackages.tsun: add typescript to NODE_PATH
This package has typescript as dependency, but it is specified as peer
dependency which is not reflected via the nodePackages generation script
which is using node2nix which is requiring `--include-peer-dependencies`
to include such dependencies.
In order to be able to run this package stand alone, it needs to add the
typescript module to the NODE_PATH.
Fix #88046
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/node-packages/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/node-packages/default.nix b/pkgs/development/node-packages/default.nix index 2ceef0f477f2..6768c6834dc3 100644 --- a/pkgs/development/node-packages/default.nix +++ b/pkgs/development/node-packages/default.nix @@ -131,6 +131,14 @@ let ''; }; + tsun = super.tsun.overrideAttrs (oldAttrs: { + buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ]; + postInstall = '' + wrapProgram "$out/bin/tsun" \ + --prefix NODE_PATH : ${self.typescript}/lib/node_modules + ''; + }); + stf = super.stf.override { meta.broken = since "10"; }; |