From 8b62337df767573a2191709b2d8da52cc2edae97 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 19 Jan 2026 01:01:48 +0000 Subject: [PATCH] haskellPackages.safe-exceptions: simplify override --- pkgs/development/haskell-modules/configuration-nix.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index a2ff42270836..e551dd77afde 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -508,10 +508,8 @@ builtins.intersectAttrs super { lz4-frame-conduit = addTestToolDepends [ pkgs.lz4 ] super.lz4-frame-conduit; - safe-exceptions = overrideCabal (drv: { - # Fix strictDeps build error "could not execute: hspec-discover" - testToolDepends = drv.testToolDepends or [ ] ++ [ self.hspec-discover ]; - }) super.safe-exceptions; + # Fix strictDeps build error "could not execute: hspec-discover" + safe-exceptions = addTestToolDepends [ self.hspec-discover ] super.safe-exceptions; # Test suite requires running a database server. Testing is done upstream. hasql = dontCheck super.hasql;