mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
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:
parent
20e62aa580
commit
cd9b4e02d0
@ -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…
Reference in New Issue
Block a user