aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2023-02-28 15:56:46 +0100
committerGitHub <noreply@github.com>2023-02-28 15:56:46 +0100
commit892d46adbbb284501c00c7bfe0914d633845bcd2 (patch)
tree4ff5fd5f51ffd46b0ff1b076f6594554f2b06b03
parentc6051cac6f6258712ed64b3359004b5fe25c7d69 (diff)
flake.nix: Force the ./configure tests setting
This always forces the setting, rather than relying on its default, and cleans up the code a bit. Co-authored-by: John Ericson <git@JohnEricson.me>
-rw-r--r--flake.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 5f2b46d57..2000c2d73 100644
--- a/flake.nix
+++ b/flake.nix
@@ -353,7 +353,8 @@
configureFlags = configureFlags ++
[ "--sysconfdir=/etc" ] ++
lib.optional stdenv.hostPlatform.isStatic "--enable-embedded-sandbox-shell" ++
- (if finalAttrs.doCheck then testConfigureFlags else [ "--disable-tests" ]) ++
+ [ (lib.enableFeature finalAttrs.doCheck "tests") ] ++
+ lib.optionals finalAttrs.doCheck testConfigureFlags ++
lib.optional (!canRunInstalled) "--disable-doc-gen";
enableParallelBuilding = true;