From 3f4d5f2cf8794f09892b73b786447ee8bb0b6173 Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Sat, 2 Jul 2022 17:35:08 +0100 Subject: [PATCH] haskellPackages.rio: skip a broken test on aarch64-darwin --- .../haskell-modules/configuration-darwin.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index d40643114e47..fd632ee81f82 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;