diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-09-14 21:40:33 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-09-14 21:40:33 +0200 |
commit | a2f8623363e186271cbe2abae1bcac429d49c340 (patch) | |
tree | 0ee550535c2a8762680611736637210ef9cdfa78 /pkgs/build-support/php/hooks/composer-install-hook.sh | |
parent | 2cd86bf59a9441072f9d557099d4b6385c3a4582 (diff) |
build-support/php: prevent the creation of symlinks
Using symbolic links create issues on Darwin, therefore, using `makeWrapper` fix this.
Diffstat (limited to 'pkgs/build-support/php/hooks/composer-install-hook.sh')
-rw-r--r-- | pkgs/build-support/php/hooks/composer-install-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/php/hooks/composer-install-hook.sh b/pkgs/build-support/php/hooks/composer-install-hook.sh index 9f23b90fa401d..bb6cb47e861b9 100644 --- a/pkgs/build-support/php/hooks/composer-install-hook.sh +++ b/pkgs/build-support/php/hooks/composer-install-hook.sh @@ -106,7 +106,7 @@ composerInstallInstallHook() { # Create symlinks for the binaries. jq -r -c 'try .bin[]' composer.json | while read -r bin; do mkdir -p "$out"/share/php/"${pname}" "$out"/bin - ln -s "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")" + makeWrapper "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")" done echo "Finished composerInstallInstallHook" |