diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-05-02 18:13:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 18:13:56 +0200 |
commit | 38688eb3d806a072ff9c8c080ab117a8872c012e (patch) | |
tree | 1420fd28141e1724afd6e69db79b73998b5f7ded | |
parent | 8636bdfa2f91bcb7be71744484a8b75d985aa92a (diff) | |
parent | 095af042d00dcdfb4b57f2237dd7bf9f61c565b9 (diff) |
Merge pull request #308560 from NixOS/backport-272448-to-release-23.11
[Backport release-23.11] build-support/php: prevent the creation of symlinks of `bin` ending with `.bat`
-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 e865ae116be2..edba0e5eec4e 100644 --- a/pkgs/build-support/php/hooks/composer-install-hook.sh +++ b/pkgs/build-support/php/hooks/composer-install-hook.sh @@ -116,7 +116,7 @@ composerInstallInstallHook() { cp -r . "$out"/share/php/"${pname}"/ # Create symlinks for the binaries. - jq -r -c 'try .bin[]' composer.json | while read -r bin; do + jq -r -c 'try (.bin[] | select(test(".bat$")? | not) )' composer.json | while read -r bin; do mkdir -p "$out"/share/php/"${pname}" "$out"/bin makeWrapper "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")" done |