File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ final: prev: {
46
46
47
47
# All packages from Hackage as Nix expressions
48
48
hackageSrc = sources . hackage ;
49
- hackage = { } ; # TODO remove completely
49
+ # The only stack projects need hackage.nix now
50
+ hackageForStack = import hackageSrc ;
50
51
51
52
# Contains the hashes of the cabal 01-index.tar.gz for given
52
53
# index states. Starting from April 1st 2019.
@@ -70,6 +71,7 @@ final: prev: {
70
71
, pkg-def-extras ? [ ] # Additional packages to augment the Base package set `pkg-def` with.
71
72
, modules ? [ ]
72
73
, extra-hackages ? [ ] # Extra Hackage repositories to use besides main one.
74
+ , hackage
73
75
} @args :
74
76
75
77
let
@@ -131,6 +133,7 @@ final: prev: {
131
133
modules = [ { doExactConfig = true ; } patchesModule ]
132
134
++ modules
133
135
++ map removeStackSpecial ( stack-pkgs . modules or [ ] ) ;
136
+ hackage = hackageForStack ;
134
137
} ;
135
138
136
139
# Create a Haskell package set based on a Cabal configuration.
@@ -163,6 +166,7 @@ final: prev: {
163
166
++ modules
164
167
++ plan-pkgs . modules or [ ] ;
165
168
inherit extra-hackages ;
169
+ hackage = { } ;
166
170
} ;
167
171
168
172
# Package sets for all stackage snapshots.
You can’t perform that action at this time.
0 commit comments