mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +00:00
a2f8623363
Using symbolic links create issues on Darwin, therefore, using `makeWrapper` fix this.
23 lines
491 B
Nix
23 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;
|
|
}
|