diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-02-28 15:56:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 15:56:46 +0100 |
commit | 892d46adbbb284501c00c7bfe0914d633845bcd2 (patch) | |
tree | 4ff5fd5f51ffd46b0ff1b076f6594554f2b06b03 | |
parent | c6051cac6f6258712ed64b3359004b5fe25c7d69 (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.nix | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |