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
This commit is contained in:
Terje Larsen 2020-05-31 18:18:15 +02:00 committed by Silvan Mosberger
parent 20e62aa580
commit cd9b4e02d0
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D

View File

@ -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";
};