From 4dc03b821ea3eb388492866821689275ef51d251 Mon Sep 17 00:00:00 2001 From: Rongsong Shen Date: Tue, 4 Nov 2025 16:27:15 +0800 Subject: [PATCH] enable unity-test with color output --- default.nix | 2 ++ pkgs/u/unity-test/package.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/default.nix b/default.nix index 4b2cec1..be69bc2 100644 --- a/default.nix +++ b/default.nix @@ -12,6 +12,7 @@ let with_pkgconf = true; }; tinylog = callPackage ./pkgs/t/tinylog/package.nix {}; + unity_test_with_color = callPackage ./pkgs/u/unity-test/package.nix {}; in { xbuild = xbuild; @@ -19,4 +20,5 @@ in cedro = cedro; zlog_with_pkgconf = zlog_with_pkgconf; tinylog = tinylog; + unity_test_with_color = unity_test_with_color; } diff --git a/pkgs/u/unity-test/package.nix b/pkgs/u/unity-test/package.nix index 4b0d280..4e80a92 100644 --- a/pkgs/u/unity-test/package.nix +++ b/pkgs/u/unity-test/package.nix @@ -17,6 +17,7 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ cmake ]; + makeFlags = [ "UNITY_OUTPUT_COLOR=1" ]; doCheck = true; meta = {