nixpkgs/pkgs/build-support/php/hooks/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
491 B
Nix
Raw Normal View History

{ 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;
}