File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 5
5
let
6
6
# Sort and remove duplicates from nonReinstallablePkgs.
7
7
# That way changes to the order of nonReinstallablePkgs does not require rebuilds.
8
- nonReinstallablePkgs' = __attrNames ( lib . genAttrs nonReinstallablePkgs ( x : x ) )
9
- ++ component . pre-existing or [ ] ;
8
+ nonReinstallablePkgs' = __attrNames ( lib . genAttrs ( component . pre-existing ++ nonReinstallablePkgs ) ( x : x ) ) ;
10
9
11
10
ghc = if enableDWARF then defaults . ghc . dwarf else defaults . ghc ;
12
11
Original file line number Diff line number Diff line change @@ -774,9 +774,13 @@ final: prev: {
774
774
} ;
775
775
} ) plan-json . install-plan ) ;
776
776
} ) ;
777
- modules = [ {
778
- preExistingPkgs = [ ] ;
779
- }
777
+ modules = [ ( { config , pkgs , ...} : {
778
+ nonReinstallablePkgs = [ "rts" ] ++ final . lib . optionals ( pkgs . stdenv . hostPlatform . isGhcjs ) ( [
779
+ # ghci and its dependencies
780
+ "ghci" "binary" "bytestring" "containers" "template-haskell" "array" "deepseq" "filepath" "ghc-boot" "ghc-boot-th" "ghc-heap" "transformers" "unix" "directory" "time" "ghc-platform" "os-string"
781
+ ] ++ final . lib . optionals ( builtins . compareVersions config . compiler . version "8.11" < 0 ) [
782
+ "ghcjs-prim" "ghcjs-th" ] ) ;
783
+ } )
780
784
( { config , ...} : {
781
785
packages = final . lib . listToAttrs ( map ( p : {
782
786
name = to-key p ;
You can’t perform that action at this time.
0 commit comments