nixos/alsa: reintroduce hardware.alsa.enablePersistence (#373529)
[NixPkgs.git] / pkgs / build-support / php / builders / v2 / hooks / default.nix
blobe4d6dcd8ffc7e1cd765f81f9718f589b10d4960c
2   lib,
3   makeSetupHook,
4   jq,
5   writeShellApplication,
6   moreutils,
7   cacert,
8   buildPackages,
9 }:
11 let
12   php-script-utils = writeShellApplication {
13     name = "php-script-utils";
14     runtimeInputs = [ jq ];
15     text = builtins.readFile ./php-script-utils.bash;
16   };
19   composerVendorHook = makeSetupHook {
20     name = "composer-vendor-hook.sh";
21     propagatedBuildInputs = [
22       jq
23       moreutils
24       cacert
25     ];
26     substitutions = {
27       phpScriptUtils = lib.getExe php-script-utils;
28     };
29   } ./composer-vendor-hook.sh;
31   composerInstallHook = makeSetupHook {
32     name = "composer-install-hook.sh";
33     propagatedBuildInputs = [
34       jq
35       moreutils
36       cacert
37     ];
38     substitutions = {
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;
43     };
44   } ./composer-install-hook.sh;