Skip to content

Commit

Permalink
p4: fix darwin build (#371520)
Browse files Browse the repository at this point in the history
  • Loading branch information
corngood authored Jan 7, 2025
2 parents 0d5e58a + 64646c9 commit 0eae8eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/applications/version-management/p4/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 0eae8eb

Please sign in to comment.