PHP: don't override patchPhase

The advantage is that this means the original `patchPhase` becomes
available again, so people can use `patches` in overrides.
This commit is contained in:
Arnout Engelen 2023-03-18 11:12:36 +01:00
parent 4aa6e86907
commit fd490e1c9d
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA
2 changed files with 4 additions and 22 deletions

View File

@ -181,21 +181,12 @@
# set name & version
jq \
"(.name = \"${name}\") | \
(.version = \"${versionString}\")" \
(.version = \"${versionString}\") | \
(.extra.patches = {})" \
composer.json | sponge composer.json
runHook postUnpack
'';
patchPhase = ''
runHook prePatch
# fixup composer.json
jq \
"(.extra.patches = {})" \
composer.json | sponge composer.json
runHook postPatch
'';
configurePhase = ''
runHook preConfigure

View File

@ -176,21 +176,12 @@
# set name & version
jq \
"(.name = \"${name}\") | \
(.version = \"${versionString}\")" \
(.version = \"${versionString}\") | \
(.extra.patches = {})" \
composer.json | sponge composer.json
runHook postUnpack
'';
patchPhase = ''
runHook prePatch
# fixup composer.json
jq \
"(.extra.patches = {})" \
composer.json | sponge composer.json
runHook postPatch
'';
configurePhase = ''
runHook preConfigure