cxxopts: fix broken pkgconfig dependency on icu-cu

Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Colin
2025-10-07 12:07:58 +02:00
committed by Sefa Eyeoglu
co-authored by Sefa Eyeoglu
parent 09c221b2f0
commit 8bfd238dd7
+10 -1
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
cmake,
icu74,
pkg-config,
@@ -19,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-baM6EX9D0yfrKxuPXyUUV9RqdrVLyygeG6x57xN8lc4=";
};
buildInputs = lib.optionals enableUnicodeHelp [ icu74.dev ];
propagatedBuildInputs = lib.optionals enableUnicodeHelp [ icu74.dev ];
cmakeFlags = [
"-DCXXOPTS_BUILD_EXAMPLES=OFF"
]
@@ -37,6 +38,14 @@ stdenv.mkDerivation (finalAttrs: {
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
'';
patches = [
(fetchpatch2 {
url = "https://github.com/jarro2783/cxxopts/commit/e98c73d665915b292a0592bf34fcbe8522035bc1.patch?full_index=1";
name = "fix-icu-uc-typo-in-pkgconfig.patch";
hash = "sha256-bqd3H66Op1/EkN2HLd84Obky4Y2ndPPY8MGZ5fqtdk4=";
})
];
meta = with lib; {
homepage = "https://github.com/jarro2783/cxxopts";
description = "Lightweight C++ GNU-style option parser library";