mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
nodejs: add python to passthru
so nodeEnv uses the exact same version. See also https://github.com/svanderburg/node2nix/issues/25
This commit is contained in:
parent
ef981df445
commit
2de9321880
@ -6,11 +6,11 @@
|
||||
|
||||
let
|
||||
nodeEnv = import ./node-env.nix {
|
||||
inherit (pkgs) stdenv python utillinux runCommand writeTextFile;
|
||||
inherit (pkgs) stdenv utillinux runCommand writeTextFile;
|
||||
inherit nodejs;
|
||||
};
|
||||
in
|
||||
import ./node-packages-v4.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
||||
}
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
let
|
||||
nodeEnv = import ./node-env.nix {
|
||||
inherit (pkgs) stdenv python utillinux runCommand writeTextFile;
|
||||
inherit (pkgs) stdenv utillinux runCommand writeTextFile;
|
||||
inherit nodejs;
|
||||
};
|
||||
in
|
||||
import ./node-packages-v6.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,10 @@
|
||||
# This file originates from node2nix
|
||||
|
||||
{stdenv, python, nodejs, utillinux, runCommand, writeTextFile}:
|
||||
{stdenv, nodejs, utillinux, runCommand, writeTextFile}:
|
||||
|
||||
let
|
||||
inherit (nodejs) python;
|
||||
|
||||
# Create a tar wrapper that filters all the 'Ignoring unknown extended header keyword' noise
|
||||
tarWrapper = runCommand "tarWrapper" {} ''
|
||||
mkdir -p $out/bin
|
||||
|
@ -67,4 +67,6 @@ in
|
||||
maintainers = with maintainers; [ goibhniu havvy gilligan cko ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
|
||||
passthru.python = python2; # to ensure nodeEnv uses the same version
|
||||
}
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
let
|
||||
nodeEnv = import ../../../development/node-packages/node-env.nix {
|
||||
inherit (pkgs) stdenv python utillinux runCommand writeTextFile;
|
||||
inherit (pkgs) stdenv utillinux runCommand writeTextFile;
|
||||
inherit nodejs;
|
||||
};
|
||||
in
|
||||
import ./node-packages.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
||||
}
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
let
|
||||
nodeEnv = import ../../../development/node-packages/node-env.nix {
|
||||
inherit (pkgs) stdenv python utillinux runCommand writeTextFile;
|
||||
inherit (pkgs) stdenv utillinux runCommand writeTextFile;
|
||||
inherit nodejs;
|
||||
};
|
||||
in
|
||||
import ./node-packages.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user