p4: fix darwin build (#371520)

This commit is contained in:
David McFarland
2025-01-07 08:48:06 -04:00
committed by GitHub
@@ -45,6 +45,12 @@ stdenv.mkDerivation (finalAttrs: rec {
sha256 = "sha256-6+DOJPeVzP4x0UsN9MlZRAyusapBTICX0BuyvVBQBC8=";
};
postPatch = lib.optionals stdenv.hostPlatform.isDarwin ''
# same error as https://github.com/pocoproject/poco/issues/4586
substituteInPlace zlib/zutil.h \
--replace-fail '#if defined(MACOS) || defined(TARGET_OS_MAC)' '#if defined(MACOS)'
'';
nativeBuildInputs = [ jam ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [