Skip to content

Commit

Permalink
php73: fix builds on darwin architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 25, 2023
1 parent a74d5a1 commit 7e53d72
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/php/7.3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ let
url = "https://github.com/NixOS/nixpkgs/raw/42e9a2ccfab2a96d28c3c164a6cf41fb6f769de5/pkgs/development/interpreters/php/php73-darwin-isfinite.patch";
sha256 = "V0mLLmXa2qJyxIVW/7nEml6cXZTBbr42kkJiij9KPyk=";
})
];
# Handle macos versions that don't start with 10.* in libtool.
# https://github.com/php/php-src/commit/d016434ad33284dfaceb8d233351d34356566d7d
(prev.pkgs.fetchpatch2 {
url = "https://github.com/php/php-src/commit/d016434ad33284dfaceb8d233351d34356566d7d.patch";
sha256 = "sha256-x0vEcoXNFeQi3re1TrK/Np9AH5dy3wf95xM08xCyGE0=";
includes = [
"build/libtool.m4"
];
})
];
};
in
base.withExtensions (
Expand Down
3 changes: 3 additions & 0 deletions pkgs/phps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ let

"--enable-libxml"
"--with-libxml-dir=${prev.libxml2.dev}"
]
++ prev.lib.optionals (prev.lib.versionAtLeast args.version "7.3") [
"--with-pcre-regex=${prev.pcre2.dev}"
];

buildInputs =
Expand Down

0 comments on commit 7e53d72

Please sign in to comment.