nixpkgs/pkgs/build-support/php/hooks/default.nix
Pol Dellaiera a2f8623363
build-support/php: prevent the creation of symlinks
Using symbolic links create issues on Darwin, therefore, using `makeWrapper` fix this.
2023-09-14 21:40:33 +02:00

22 lines
491 B
Nix

{ makeSetupHook
, jq
, moreutils
, makeBinaryWrapper
, php
}:
{
composerRepositoryHook = makeSetupHook
{
name = "composer-repository-hook.sh";
propagatedBuildInputs = [ jq moreutils php ];
substitutions = { };
} ./composer-repository-hook.sh;
composerInstallHook = makeSetupHook
{
name = "composer-install-hook.sh";
propagatedBuildInputs = [ jq makeBinaryWrapper moreutils php ];
substitutions = { };
} ./composer-install-hook.sh;
}