compilers/ghcjs/base.nix: Take ghcjsNodePkgs as argument

This commit is contained in:
Renzo Carbonara 2017-02-09 00:22:11 +01:00
parent 4494b18fe4
commit 1684c9a6a0

View File

@ -39,6 +39,11 @@
, coreutils
, libiconv
, ghcjsNodePkgs ? callPackage ../../../top-level/node-packages.nix {
generated = ./node-packages-generated.nix;
self = ghcjsNodePkgs;
}
, version ? "0.2.0"
, ghcjsSrc ? fetchFromGitHub {
owner = "ghcjs";
@ -160,12 +165,7 @@ in mkDerivation (rec {
--with-gmp-includes ${gmp.dev}/include \
--with-gmp-libraries ${gmp.out}/lib
'';
passthru = let
ghcjsNodePkgs = callPackage ../../../top-level/node-packages.nix {
generated = ./node-packages-generated.nix;
self = ghcjsNodePkgs;
};
in {
passthru = {
inherit bootPkgs;
isCross = true;
isGhcjs = true;