about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-darwin.nix
diff options
context:
space:
mode:
authorAndrew Dunham <andrew@du.nham.ca>2022-07-02 17:35:08 +0100
committerAndrew Dunham <andrew@du.nham.ca>2022-07-03 20:46:55 +0100
commit3f4d5f2cf8794f09892b73b786447ee8bb0b6173 (patch)
treeb2fef0eb432cc941d22df0e9985daa9216818bc2 /pkgs/development/haskell-modules/configuration-darwin.nix
parent6bb10cfe5d763da4d9040c94c6a4ba0728ef2edf (diff)
haskellPackages.rio: skip a broken test on aarch64-darwin
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-darwin.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-darwin.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix
index d40643114e478..fd632ee81f829 100644
--- a/pkgs/development/haskell-modules/configuration-darwin.nix
+++ b/pkgs/development/haskell-modules/configuration-darwin.nix
@@ -281,7 +281,16 @@ self: super: ({
 
   # https://github.com/fpco/unliftio/issues/87
   unliftio = dontCheck super.unliftio;
-
+  # This is the same issue as above; the rio tests call functions in unliftio
+  # that have issues as tracked in the GitHub issue above. Once the unliftio
+  # tests are fixed, we can remove this as well.
+  #
+  # We skip just the problematic tests by replacing 'it' with 'xit'.
+  rio = overrideCabal (drv: {
+    preConfigure = ''
+      sed -i 's/\bit /xit /g' test/RIO/FileSpec.hs
+    '';
+  }) super.rio;
 
   # https://github.com/haskell-crypto/cryptonite/issues/360
   cryptonite = appendPatch ./patches/cryptonite-remove-argon2.patch super.cryptonite;