From 51419dabf2bf49ac01f7fd676302c99447d4d82c Mon Sep 17 00:00:00 2001 From: Dennis Gosnell Date: Tue, 14 Dec 2021 14:02:24 +0900 Subject: [PATCH] haskellPackages.hslua: disable tests when building with musl --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index e5de0247f720..7e18e85f7bb5 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -977,6 +977,13 @@ self: super: { # dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test unix-time = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.unix-time else super.unix-time; + # hslua has tests that appear to break when using musl. + # https://github.com/hslua/hslua/issues/106 + # Note that hslua is currently version 1.3. However, in the latest version + # (>= 2.0), hslua has been split into multiple packages and this override + # will likely need to be moved to the hslua-core package. + hslua = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.hslua else super.hslua; + # The test suite runs for 20+ minutes on a very fast machine, which feels kinda disproportionate. prettyprinter = dontCheck super.prettyprinter; brittany = doJailbreak (dontCheck super.brittany); # Outdated upperbound on ghc-exactprint: https://github.com/lspitzner/brittany/issues/342