File tree Expand file tree Collapse file tree 3 files changed +33
-6
lines changed Expand file tree Collapse file tree 3 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 31
31
url = "github:input-output-hk/hackage.nix/for-stackage" ;
32
32
flake = false ;
33
33
} ;
34
+ hackage-internal = {
35
+ url = "github:input-output-hk/hackage.nix" ;
36
+ flake = false ;
37
+ } ;
34
38
stackage = {
35
39
url = "github:input-output-hk/stackage.nix" ;
36
40
flake = false ;
Original file line number Diff line number Diff line change @@ -437,8 +437,8 @@ final: prev: {
437
437
# If you want to update this value it important to check the
438
438
# materializations. Turn `checkMaterialization` on below and
439
439
# check the CI results before turning it off again.
440
- internalHackageIndexState = "2024-10-17T00:00:00Z" ; # Remember to also update ../nix-tools/cabal.project and ../nix-tools/flake.lock
441
-
440
+ internalHackageIndexState = builtins . head ( builtins . attrNames (
441
+ import ( sources . hackage-internal + "/index-state.nix" ) ) ) ;
442
442
checkMaterialization = false ; # This is the default. Use an overlay to set it to true and test all the materialized files
443
443
444
444
# Helps materialize the output of derivations
@@ -601,7 +601,13 @@ final: prev: {
601
601
# Takes a haskell src directory runs cabal new-configure and plan-to-nix.
602
602
# Resulting nix files are added to nix-plan subdirectory.
603
603
callCabalProjectToNix = import ../lib/call-cabal-project-to-nix.nix {
604
- index-state-hashes = import indexStateHashesPath ;
604
+ index-state-hashes =
605
+ (
606
+ if builtins . pathExists ( hackageSrc + "/index-state.nix" )
607
+ then import ( hackageSrc + "/index-state.nix" )
608
+ else import ( hackageSrc + "/index-state-hashes.nix" )
609
+ )
610
+ // import ( sources . hackage-internal + "/index-state.nix" ) ;
605
611
inherit ( final . buildPackages . haskell-nix ) haskellLib ;
606
612
pkgs = final . buildPackages . pkgs ;
607
613
inherit ( final . buildPackages . pkgs ) cacert ;
You can’t perform that action at this time.
0 commit comments