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 3131 url = "github:input-output-hk/hackage.nix/for-stackage" ;
3232 flake = false ;
3333 } ;
34+ hackage-internal = {
35+ url = "github:input-output-hk/hackage.nix" ;
36+ flake = false ;
37+ } ;
3438 stackage = {
3539 url = "github:input-output-hk/stackage.nix" ;
3640 flake = false ;
Original file line number Diff line number Diff line change @@ -437,8 +437,8 @@ final: prev: {
437437 # If you want to update this value it important to check the
438438 # materializations. Turn `checkMaterialization` on below and
439439 # 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" ) ) ) ;
442442 checkMaterialization = false ; # This is the default. Use an overlay to set it to true and test all the materialized files
443443
444444 # Helps materialize the output of derivations
@@ -601,7 +601,13 @@ final: prev: {
601601 # Takes a haskell src directory runs cabal new-configure and plan-to-nix.
602602 # Resulting nix files are added to nix-plan subdirectory.
603603 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" ) ;
605611 inherit ( final . buildPackages . haskell-nix ) haskellLib ;
606612 pkgs = final . buildPackages . pkgs ;
607613 inherit ( final . buildPackages . pkgs ) cacert ;
You can’t perform that action at this time.
0 commit comments