From 7e09121c44a20f0e881210d65ed6b8a460c89460 Mon Sep 17 00:00:00 2001 From: Colin Arnott Date: Sun, 15 Jan 2023 11:02:15 +0000 Subject: [PATCH] wordpress: add {pre,post}Install hooks --- pkgs/servers/web-apps/wordpress/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/web-apps/wordpress/generic.nix b/pkgs/servers/web-apps/wordpress/generic.nix index 3c9aa377d770..e15640c88281 100644 --- a/pkgs/servers/web-apps/wordpress/generic.nix +++ b/pkgs/servers/web-apps/wordpress/generic.nix @@ -10,8 +10,12 @@ stdenv.mkDerivation rec { }; installPhase = '' + runHook preInstall + mkdir -p $out/share/wordpress cp -r . $out/share/wordpress + + runHook postInstall ''; passthru.tests = {