From 9d78495066a70da40308658f05cedb11c3be1de1 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 18 Feb 2023 20:33:07 +0100 Subject: haskellPackages.guardian: fix build by joining cabal-install overlay The package depends on cabal-install and Cabal which need later versions of a few packages than we have in our default package set. --- .../development/haskell-modules/configuration-common.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 ; -- cgit 1.4.1