From 4772ae2e373e655de0ae7388bbbdec2278632fe3 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 15 Sep 2024 12:32:52 +0200 Subject: [PATCH] pkgsStatic.haskellPackages: run checks by default The default for doCheck is meant to disable tests, when they can't be executed in cross environments. However, pkgsStatic and some other package sets are technically implemented as cross, even though the binaries can be executed just fine. Using canExecute is a much better check for this, thus enabling tests on pkgsStatic by default. --- pkgs/development/haskell-modules/generic-builder.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 23dc5054a854f..193965ff6c7ec 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -41,7 +41,7 @@ in , buildFlags ? [] , haddockFlags ? [] , description ? null -, doCheck ? !isCross +, doCheck ? stdenv.hostPlatform.canExecute stdenv.buildPlatform , doBenchmark ? false , doHoogle ? true , doHaddockQuickjump ? doHoogle