From 1e1669d763e7b8b4fa138ab15a2d6909356f2f3f Mon Sep 17 00:00:00 2001 From: Alex James Date: Mon, 7 Sep 2026 13:23:36 -0700 Subject: [PATCH] transmission_4: enable unit tests with `doCheck` transmission_4 currently builds its unit tests (controlled by the `ENABLE_TESTING` CMake option, which defaults to true [1]) but doesn't run them (as `doCheck` is not set). Set the CMake option to the value of `doCheck` to fix this, and set `doCheck` to true. [1]: https://github.com/transmission/transmission/blob/48835c6660a7a3730b5a122bb7b88909997addbe/CMakeLists.txt#L76 --- pkgs/by-name/tr/transmission_4/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/tr/transmission_4/package.nix b/pkgs/by-name/tr/transmission_4/package.nix index 09da3aeeb134..691404b21ad7 100644 --- a/pkgs/by-name/tr/transmission_4/package.nix +++ b/pkgs/by-name/tr/transmission_4/package.nix @@ -77,6 +77,7 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; __structuredAttrs = true; + doCheck = true; patches = [ ./0001-Skip-bundle-fixup.patch @@ -99,6 +100,7 @@ stdenv.mkDerivation (finalAttrs: { (cmakeBool "ENABLE_GTK" enableGTK) (cmakeBool "ENABLE_MAC" enableMac) (cmakeBool "ENABLE_QT" enableQt) + (cmakeBool "ENABLE_TESTS" finalAttrs.doCheck) (cmakeBool "INSTALL_LIB" installLib) (cmakeBool "RUN_CLANG_TIDY" false) ]