nodePackages_8_x.pnpm: wrap nodejs.passthru.python

This commit is contained in:
adisbladis 2018-06-01 14:38:54 +08:00
parent 83399e3191
commit 5fb1cfb77b
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

@ -24,13 +24,13 @@ nodePackages // {
phantomjs = nodePackages.phantomjs.override (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.phantomjs2 ];
});
webdrvr = nodePackages.webdrvr.override (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.phantomjs ];
preRebuild = ''
mkdir $TMPDIR/webdrvr
ln -s ${pkgs.fetchurl {
url = "https://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar";
sha1 = "ef1b5f8ae9c99332f99ba8794988a1d5b974d27b";
@ -66,6 +66,15 @@ nodePackages // {
'';
});
pnpm = nodePackages.pnpm.override (oldAttrs: {
nativeBuildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
postInstall = ''
for prog in $out/bin/*; do
wrapProgram "$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ nodejs.passthru.python ]}
done
'';
});
fast-cli = nodePackages."fast-cli-1.x".override (oldAttrs: {
preRebuild = ''
# Simply ignore the phantomjs --version check. It seems to need a display but it is safe to ignore