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
wip/yesman
Terje Larsen 4 years ago committed by Silvan Mosberger
parent 20e62aa580
commit cd9b4e02d0
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D
  1. 8
      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";
};

Loading…
Cancel
Save