File tree Expand file tree Collapse file tree 6 files changed +40
-9
lines changed Expand file tree Collapse file tree 6 files changed +40
-9
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ let self =
82
82
, enableTSanRTS ? false
83
83
84
84
# LLVM
85
- , useLLVM ? ghc . useLLVM
85
+ , useLLVM ? false
86
86
, smallAddressSpace ? false
87
87
88
88
} @drvArgs :
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ config:
18
18
, ...
19
19
} @pkg :
20
20
21
- assert ( if ghc . isHaskellNixCompiler or false then true
22
- else throw ( "It is likely you used `haskell.compiler.X` instead of `haskell-nix.compiler.X`"
23
- + pkgs . lib . optionalString ( name != null ) ( " for " + name ) ) ) ;
24
-
25
21
let
26
22
# Some packages bundled with GHC are not the same as they are in hackage.
27
23
bundledSrc = {
Original file line number Diff line number Diff line change 107
107
pkgs . haskell-nix . compiler . "${ compiler-nix-name } " ;
108
108
109
109
in
110
- assert ( if ghc' . isHaskellNixCompiler or false then true
111
- else throw ( "It is likely you used `haskell.compiler.X` instead of `haskell-nix.compiler.X`"
112
- + forName ) ) ;
113
110
114
111
let
115
112
ghc = ghc' ;
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ in rec {
163
163
inherit subDir ;
164
164
includeSiblings = true ;
165
165
}
166
- else "${ ghc . passthru . configured-src } /${ subDir } " ;
166
+ else "${ ghc . configured-src } /${ subDir } " ;
167
167
nix = callCabal2Nix ghcName "${ ghcName } -${ pkgName } " src ;
168
168
} ) ( ghc-extra-pkgs ghc . version ) )
169
169
final . buildPackages . haskell-nix . compiler ;
Original file line number Diff line number Diff line change
1
+ let
2
+
3
+ haskell-nix = import ../../default.nix { } ;
4
+ nixpkgs = haskell-nix . inputs . nixpkgs . outPath ;
5
+
6
+ o2 = (
7
+ final : prev : {
8
+ haskell-nix = prev . haskell-nix // {
9
+ compiler = prev . haskell-nix . compiler // {
10
+ ghc8107 = prev . haskell . compiler . ghc8107 // {
11
+ # Add stuff not in nixpkgs ghc
12
+ configured-src = prev . haskell-nix . compiler . ghc8107 . configured-src ; # Needed for reinstallableLibGhc to work
13
+ } ;
14
+ } ;
15
+ } ;
16
+ }
17
+ ) ;
18
+
19
+ pkgs = import nixpkgs {
20
+ system = __currentSystem ;
21
+ inherit ( haskell-nix ) config ;
22
+ overlays = [
23
+ # haskell-nix.overlays.haskell
24
+ # haskell-nix.overlays.tools
25
+ haskell-nix . overlay
26
+ o2
27
+ ] ;
28
+ } ;
29
+
30
+ prj = pkgs . haskell-nix . cabalProject {
31
+ src = ./empty ;
32
+ cabalProject = "extra-packages: lens" ;
33
+ compiler-nix-name = "ghc8107" ;
34
+ } ;
35
+ in
36
+
37
+ prj . plan-nix
38
+
You can’t perform that action at this time.
0 commit comments