about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-nix.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2024-01-07 01:40:34 +0100
committersternenseemann <sternenseemann@systemli.org>2024-01-07 01:44:48 +0100
commit799b5efeef84ec2eecaae0b4b4c778fb15c5f67f (patch)
tree2321b624fbf6e6b3e0c5d083f08e28a335b9c244 /pkgs/development/haskell-modules/configuration-nix.nix
parente155eee35e4d34534f7b987dfc2d636d04e6b0f4 (diff)
downloadnixlib-799b5efeef84ec2eecaae0b4b4c778fb15c5f67f.tar
nixlib-799b5efeef84ec2eecaae0b4b4c778fb15c5f67f.tar.gz
nixlib-799b5efeef84ec2eecaae0b4b4c778fb15c5f67f.tar.bz2
nixlib-799b5efeef84ec2eecaae0b4b4c778fb15c5f67f.tar.lz
nixlib-799b5efeef84ec2eecaae0b4b4c778fb15c5f67f.tar.xz
nixlib-799b5efeef84ec2eecaae0b4b4c778fb15c5f67f.tar.zst
nixlib-799b5efeef84ec2eecaae0b4b4c778fb15c5f67f.zip
haskellPackages.fourmolu*: enable tests for all versions
Clean up override for removed version.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-nix.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix30
1 files changed, 19 insertions, 11 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index c37093e7020f..aee56bed3ece 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -1216,18 +1216,26 @@ self: super: builtins.intersectAttrs super {
   }) super.procex;
 
   # Test suite wants to run main executable
-  fourmolu = overrideCabal (drv: {
-    preCheck = drv.preCheck or "" + ''
-      export PATH="$PWD/dist/build/fourmolu:$PATH"
-    '';
-  }) super.fourmolu;
+  # https://github.com/fourmolu/fourmolu/issues/231
+  inherit (
+    let
+      fourmoluTestFix = overrideCabal (drv: {
+        preCheck = drv.preCheck or "" + ''
+          export PATH="$PWD/dist/build/fourmolu:$PATH"
+        '';
+        hydraPlatforms = lib.platforms.all; # also test versioned attributes
+      });
+    in
 
-  # Test suite wants to run main executable
-  fourmolu_0_10_1_0 = overrideCabal (drv: {
-    preCheck = drv.preCheck or "" + ''
-      export PATH="$PWD/dist/build/fourmolu:$PATH"
-    '';
-  }) super.fourmolu_0_10_1_0;
+    {
+      fourmolu = fourmoluTestFix super.fourmolu;
+      fourmolu_0_14_0_0 = fourmoluTestFix super.fourmolu_0_14_0_0;
+      fourmolu_0_14_1_0 = fourmoluTestFix super.fourmolu_0_14_1_0;
+    })
+    fourmolu
+    fourmolu_0_14_0_0
+    fourmolu_0_14_1_0
+    ;
 
   # Test suite needs to execute 'disco' binary
   disco = overrideCabal (drv: {