diff options
author | Ryan Trinkle <ryan.trinkle@gmail.com> | 2016-07-26 16:58:56 -0400 |
---|---|---|
committer | Ryan Trinkle <ryan.trinkle@gmail.com> | 2016-07-26 16:58:56 -0400 |
commit | c564997ba0372147a2b0f376073fdfdd37306152 (patch) | |
tree | bfd834296ab915841adbdc6479c83a21e01165ab /pkgs/development/haskell-modules/configuration-ghcjs.nix | |
parent | 3badad811c600db9867f15a326efa69898299099 (diff) | |
download | nixpkgs-c564997ba0372147a2b0f376073fdfdd37306152.tar nixpkgs-c564997ba0372147a2b0f376073fdfdd37306152.tar.gz nixpkgs-c564997ba0372147a2b0f376073fdfdd37306152.tar.bz2 nixpkgs-c564997ba0372147a2b0f376073fdfdd37306152.tar.lz nixpkgs-c564997ba0372147a2b0f376073fdfdd37306152.tar.xz nixpkgs-c564997ba0372147a2b0f376073fdfdd37306152.tar.zst nixpkgs-c564997ba0372147a2b0f376073fdfdd37306152.zip |
ghcjs: refactor stage2 handling
Previously, the stage2 information was stored in haskell-modules, and imported directly from there. However, the correct stage2 information is determined by the version of ghcjs-boot repository. This commit makes the stage2 information part of the ghcjs derivation, which improves organization and makes it possible to override stage2 when overriding ghcjs.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghcjs.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghcjs.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghcjs.nix b/pkgs/development/haskell-modules/configuration-ghcjs.nix index d75a7f889aa..fffe29b1bc3 100644 --- a/pkgs/development/haskell-modules/configuration-ghcjs.nix +++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix @@ -9,11 +9,9 @@ with import ./lib.nix { inherit pkgs; }; self: super: # The stage 2 packages. Regenerate with ./ghcjs/gen-stage2.rb - let stage2 = - (import ./ghcjs/stage2.nix { + let stage2 = super.ghc.mkStage2 { inherit (self) callPackage; - inherit (self.ghc) ghcjsBoot; - }); in stage2 // { + }; in stage2 // { old-time = overrideCabal stage2.old-time (drv: { postPatch = '' |