build-support/php: prevent the creation of symlinks
Using symbolic links create issues on Darwin, therefore, using `makeWrapper` fix this.
This commit is contained in:
parent
2cd86bf59a
commit
a2f8623363
2 changed files with 5 additions and 4 deletions
|
@ -106,7 +106,7 @@ composerInstallInstallHook() {
|
||||||
# Create symlinks for the binaries.
|
# Create symlinks for the binaries.
|
||||||
jq -r -c 'try .bin[]' composer.json | while read -r bin; do
|
jq -r -c 'try .bin[]' composer.json | while read -r bin; do
|
||||||
mkdir -p "$out"/share/php/"${pname}" "$out"/bin
|
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
|
done
|
||||||
|
|
||||||
echo "Finished composerInstallInstallHook"
|
echo "Finished composerInstallInstallHook"
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
{ makeSetupHook
|
{ makeSetupHook
|
||||||
, php
|
|
||||||
, jq
|
, jq
|
||||||
, moreutils
|
, moreutils
|
||||||
|
, makeBinaryWrapper
|
||||||
|
, php
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
composerRepositoryHook = makeSetupHook
|
composerRepositoryHook = makeSetupHook
|
||||||
{
|
{
|
||||||
name = "composer-repository-hook.sh";
|
name = "composer-repository-hook.sh";
|
||||||
propagatedBuildInputs = [ php jq moreutils ];
|
propagatedBuildInputs = [ jq moreutils php ];
|
||||||
substitutions = { };
|
substitutions = { };
|
||||||
} ./composer-repository-hook.sh;
|
} ./composer-repository-hook.sh;
|
||||||
|
|
||||||
composerInstallHook = makeSetupHook
|
composerInstallHook = makeSetupHook
|
||||||
{
|
{
|
||||||
name = "composer-install-hook.sh";
|
name = "composer-install-hook.sh";
|
||||||
propagatedBuildInputs = [ php jq moreutils ];
|
propagatedBuildInputs = [ jq makeBinaryWrapper moreutils php ];
|
||||||
substitutions = { };
|
substitutions = { };
|
||||||
} ./composer-install-hook.sh;
|
} ./composer-install-hook.sh;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue