From 7badab08b5789bd6c357704b43d1e4612abafd2d Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 30 May 2022 15:21:57 +0200 Subject: [PATCH] haskellPackages.tasty-discover: drop obsolete overrides Finally all the patches we applied have reached a hackage release. --- .../haskell-modules/configuration-common.nix | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index f0443a0efb50..d24ae1dc49a8 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -515,28 +515,8 @@ self: super: { # else dontCheck super.doctest-discover); doctest-discover = dontCheck super.doctest-discover; - # Depends on itself for testing tasty-discover = overrideCabal (drv: { - # Compatibility with tasty-hspec >= 1.1.7 requires a patch and a dependency on hspec - patches = drv.patches or [] ++ [ - # Intermediate patch so fix applies - (fetchpatch { - url = "https://github.com/haskell-works/tasty-discover/commit/67b022f5945abdfb71ca31fca7910abc7effe043.patch"; - sha256 = "1x539qa2871fiahw9zjxyyqz86v4ib7k7fv9hdvvxcrrfw3zwl66"; - }) - # Actual fix - (fetchpatch { - name = "tasty-hspec-1.1.7-compat.patch"; - url = "https://github.com/haskell-works/tasty-discover/commit/98d3c464f33129e38fa9c0fcdfb1847dfb0490b9.patch"; - sha256 = "01a8ni3lyh1wql7aghl41nd2c9m6gcn1i77bh3pygh6r403x771p"; - }) - ]; - testHaskellDepends = drv.testHaskellDepends or [] ++ [ - self.hspec - ]; - # https://github.com/haskell-works/tasty-discover/issues/17 - jailbreak = true; # allow tasty-hspec >= 1.2 - + # Depends on itself for testing preBuild = '' export PATH="$PWD/dist/build/tasty-discover:$PATH" '' + (drv.preBuild or "");