a2f8623363
Using symbolic links create issues on Darwin, therefore, using `makeWrapper` fix this.
22 lines
491 B
Nix
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;
|
|
}
|