From dffd9b528b145e860d65f0debd60c35c11423262 Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Thu, 31 Oct 2024 20:21:44 +1300 Subject: [PATCH] Also fix shell-for test --- test/shell-for/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/test/shell-for/default.nix b/test/shell-for/default.nix index a090c83f92..2fa7f7c4e7 100644 --- a/test/shell-for/default.nix +++ b/test/shell-for/default.nix @@ -20,7 +20,10 @@ let packages = ps: with ps; [ pkga pkgb ]; # This adds cabal-install to the shell, which helps tests because # they use a nix-shell --pure. Normally you would BYO cabal-install. - tools = { cabal = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; }; + tools = { + cabal.cabalProjectLocal = builtins.readFile ../cabal.project.local; + hoogle.index-state = "2024-10-01T00:00:00Z"; + }; exactDeps = true; # Avoid duplicate package issues when runghc looks for packages packageSetupDeps = false; @@ -31,7 +34,10 @@ let packages = ps: with ps; [ pkga ]; # This adds cabal-install to the shell, which helps tests because # they use a nix-shell --pure. Normally you would BYO cabal-install. - tools = { cabal = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; }; + tools = { + cabal.cabalProjectLocal = builtins.readFile ../cabal.project.local; + hoogle.index-state = "2024-10-01T00:00:00Z"; + }; exactDeps = true; # Avoid duplicate package issues when runghc looks for packages packageSetupDeps = false; @@ -43,7 +49,10 @@ let # packages = ps: with ps; [ pkga pkgb ]; # This adds cabal-install to the shell, which helps tests because # they use a nix-shell --pure. Normally you would BYO cabal-install. - tools = { cabal = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; }; + tools = { + cabal.cabalProjectLocal = builtins.readFile ../cabal.project.local; + hoogle.index-state = "2024-10-01T00:00:00Z"; + }; # Avoid duplicate package issues when runghc looks for packages packageSetupDeps = false; };