about summary refs log tree commit diff
path: root/pkgs/build-support/php/hooks/default.nix
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2024-05-07 11:18:34 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2024-05-07 11:18:34 +0200
commit3d155494e45d63780685591272da68cd358451ea (patch)
treeafb5e3c8112ba7c13b2b8a96bdf4f197a4a8ff58 /pkgs/build-support/php/hooks/default.nix
parent08e29ab1632a5b920420a568fd9fdf238831eb75 (diff)
build-support/php: reorganize files
Pave the way for having multiple versions in the future
Diffstat (limited to 'pkgs/build-support/php/hooks/default.nix')
-rw-r--r--pkgs/build-support/php/hooks/default.nix45
1 files changed, 0 insertions, 45 deletions
diff --git a/pkgs/build-support/php/hooks/default.nix b/pkgs/build-support/php/hooks/default.nix
deleted file mode 100644
index 4c0ba1b18801c..0000000000000
--- a/pkgs/build-support/php/hooks/default.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{
-  lib,
-  makeSetupHook,
-  jq,
-  writeShellApplication,
-  moreutils,
-  cacert,
-  buildPackages,
-}:
-
-let
-  php-script-utils = writeShellApplication {
-    name = "php-script-utils";
-    runtimeInputs = [ jq ];
-    text = builtins.readFile ./php-script-utils.bash;
-  };
-in
-{
-  composerRepositoryHook = makeSetupHook {
-    name = "composer-repository-hook.sh";
-    propagatedBuildInputs = [
-      jq
-      moreutils
-      cacert
-    ];
-    substitutions = {
-      phpScriptUtils = lib.getExe php-script-utils;
-    };
-  } ./composer-repository-hook.sh;
-
-  composerInstallHook = makeSetupHook {
-    name = "composer-install-hook.sh";
-    propagatedBuildInputs = [
-      jq
-      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";
-      phpScriptUtils = lib.getExe php-script-utils;
-    };
-  } ./composer-install-hook.sh;
-}