Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
makeSetupHook,
|
|
jq,
|
|
writeShellApplication,
|
|
cacert,
|
|
buildPackages,
|
|
}:
|
|
|
|
let
|
|
php-script-utils = writeShellApplication {
|
|
name = "php-script-utils";
|
|
runtimeInputs = [ jq ];
|
|
text = builtins.readFile ./php-script-utils.bash;
|
|
};
|
|
in
|
|
{
|
|
composerVendorHook = makeSetupHook {
|
|
name = "composer-vendor-hook.sh";
|
|
propagatedNativeBuildInputs = [
|
|
jq
|
|
];
|
|
propagatedBuildInputs = [
|
|
cacert
|
|
];
|
|
substitutions = {
|
|
phpScriptUtils = lib.getExe php-script-utils;
|
|
};
|
|
} ./composer-vendor-hook.sh;
|
|
|
|
composerInstallHook = makeSetupHook {
|
|
name = "composer-install-hook.sh";
|
|
propagatedNativeBuildInputs = [
|
|
jq
|
|
];
|
|
propagatedBuildInputs = [
|
|
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";
|
|
phpScriptUtils = lib.getExe php-script-utils;
|
|
};
|
|
} ./composer-install-hook.sh;
|
|
}
|