From adeb1ea44058f53a57d9cc8b5a6049261f1f9fa5 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 21 Dec 2024 20:01:52 +0100 Subject: [PATCH] pkgsStatic.haskellPackages.unliftio: disable checks --- pkgs/development/haskell-modules/configuration-common.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 0d207082142a5..81d56981e0caf 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2268,6 +2268,14 @@ self: super: { # compilation failed hashable = dontCheckIf pkgs.stdenv.hostPlatform.isStatic super.hashable; + # Fails to build in pkgsStatic with: + # Building test suite 'unliftio-spec' for unliftio-0.2.25.0.. + # ghc: could not execute: hspec-discover + # + # Because of this in Spec.hs: + # {-# OPTIONS_GHC -F -pgmF hspec-discover #-} + unliftio = dontCheckIf pkgs.stdenv.hostPlatform.isStatic super.unliftio; + # BSON defaults to requiring network instead of network-bsd which is # required nowadays: https://github.com/mongodb-haskell/bson/issues/26 bson = appendConfigureFlag "-f-_old_network" (super.bson.override {