diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2023-12-18 19:18:03 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2023-12-18 19:18:03 +0000 |
commit | 21714bc071d192f02277ecb0ca9e0f2740c42582 (patch) | |
tree | 7075ce2ec387fe7a73f5cfc685d52086b90c243b | |
parent | aad343d87970365f9c5e6ea0128c65e281c9b973 (diff) |
unittest-cpp: fix 'Version:' field in .pc file
Before the change project built using `cmake` had Version field empty: Version: After the change version is set as expected: Version: 2.1.0 Noticed as as a build failure of `echant-2.6.4` which failed to find the package using `pkg-config --exists --print-errors "UnitTest++ >= 1.6"` expression.
-rw-r--r-- | pkgs/development/libraries/unittest-cpp/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/unittest-cpp/default.nix b/pkgs/development/libraries/unittest-cpp/default.nix index e9f67a74f9a3e..6a6407eb32ff0 100644 --- a/pkgs/development/libraries/unittest-cpp/default.nix +++ b/pkgs/development/libraries/unittest-cpp/default.nix @@ -24,6 +24,10 @@ stdenv.mkDerivation rec { }) ]; + # Fix 'Version:' setting in .pc file. TODO: remove once upstreamed: + # https://github.com/unittest-cpp/unittest-cpp/pull/188 + cmakeFlags = [ "-DPACKAGE_VERSION=${version}" ]; + nativeBuildInputs = [ cmake ]; doCheck = false; |