Merge pull request #38947 from srghma/node2nix-fix
node2nix: add nix as dependency (fix for #38946)
This commit is contained in:
commit
fc7c95b0aa
|
@ -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";
|
||||
|
@ -72,4 +72,11 @@ nodePackages // {
|
|||
'';
|
||||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.phantomjs2 ];
|
||||
});
|
||||
|
||||
node2nix = nodePackages.node2nix.override (oldAttrs: {
|
||||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/node2nix" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.nix ]}
|
||||
'';
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue