12 php-script-utils = writeShellApplication {
13 name = "php-script-utils";
14 runtimeInputs = [ jq ];
15 text = builtins.readFile ./php-script-utils.bash;
19 composerVendorHook = makeSetupHook {
20 name = "composer-vendor-hook.sh";
21 propagatedBuildInputs = [
27 phpScriptUtils = lib.getExe php-script-utils;
29 } ./composer-vendor-hook.sh;
31 composerInstallHook = makeSetupHook {
32 name = "composer-install-hook.sh";
33 propagatedBuildInputs = [
39 # Specify the stdenv's `diff` by abspath to ensure that the user's build
40 # inputs do not cause us to find the wrong `diff`.
41 cmp = "${lib.getBin buildPackages.diffutils}/bin/cmp";
42 phpScriptUtils = lib.getExe php-script-utils;
44 } ./composer-install-hook.sh;