Merge pull request #311491 from wegank/cpp-utilities-fix

cpp-utilities: fix build on x86_64-darwin
This commit is contained in:
Weijia Wang 2024-05-14 09:45:10 +02:00 committed by GitHub
commit ddc6443733
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, cmake
, cppunit
, iconv
, libiconv
}:
stdenv.mkDerivation (finalAttrs: {
@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake ];
nativeCheckInputs = [ cppunit ];
buildInputs = lib.optionals stdenv.isDarwin [
iconv # needed on Darwin, see https://github.com/Martchus/cpp-utilities/issues/4
libiconv # needed on Darwin, see https://github.com/Martchus/cpp-utilities/issues/4
];
cmakeFlags = ["-DBUILD_SHARED_LIBS=ON"];