diff options
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index fd3ed967c0d..6ef78179918 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -41,9 +41,25 @@ self: super: { { cabal-install = super.cabal-install.overrideScope cabalInstallOverlay; cabal-install-solver = super.cabal-install-solver.overrideScope cabalInstallOverlay; + + guardian = lib.pipe + # Needs cabal-install >= 3.8 /as well as/ matching Cabal + (super.guardian.overrideScope (self: super: + cabalInstallOverlay self super // { + # Needs at least path-io 1.8.0 due to canonicalizePath changes + path-io = self.path-io_1_8_0; + } + )) + [ + # Tests need internet access (run stack) + dontCheck + # May as well… + (self.generateOptparseApplicativeCompletions [ "guardian" ]) + ]; } ) cabal-install cabal-install-solver + guardian ; |