b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
29 lines
743 B
Nix
29 lines
743 B
Nix
{ lib
|
|
, makeSetupHook
|
|
, diffutils
|
|
, jq
|
|
, moreutils
|
|
, makeBinaryWrapper
|
|
, cacert
|
|
, buildPackages
|
|
}:
|
|
|
|
{
|
|
composerRepositoryHook = makeSetupHook
|
|
{
|
|
name = "composer-repository-hook.sh";
|
|
propagatedBuildInputs = [ jq moreutils cacert ];
|
|
substitutions = { };
|
|
} ./composer-repository-hook.sh;
|
|
|
|
composerInstallHook = makeSetupHook
|
|
{
|
|
name = "composer-install-hook.sh";
|
|
propagatedBuildInputs = [ jq makeBinaryWrapper moreutils cacert ];
|
|
substitutions = {
|
|
# Specify the stdenv's `diff` by abspath to ensure that the user's build
|
|
# inputs do not cause us to find the wrong `diff`.
|
|
cmp = "${lib.getBin buildPackages.diffutils}/bin/cmp";
|
|
};
|
|
} ./composer-install-hook.sh;
|
|
}
|