From 00000008777eaba4e314cca3460fbcd1739dd559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 16 May 2023 23:18:47 +0200 Subject: [PATCH] mediawiki: use stdenvNoCC, remove extra derivation --- pkgs/servers/web-apps/mediawiki/default.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/web-apps/mediawiki/default.nix b/pkgs/servers/web-apps/mediawiki/default.nix index b90dffb0be1d..5c39fc48ae6d 100644 --- a/pkgs/servers/web-apps/mediawiki/default.nix +++ b/pkgs/servers/web-apps/mediawiki/default.nix @@ -1,6 +1,6 @@ -{ lib, stdenv, fetchurl, writeText, nixosTests }: +{ lib, stdenvNoCC, fetchurl, nixosTests }: -stdenv.mkDerivation rec { +stdenvNoCC.mkDerivation rec { pname = "mediawiki"; version = "1.39.3"; @@ -13,18 +13,14 @@ stdenv.mkDerivation rec { sed -i 's|$vars = Installer::getExistingLocalSettings();|$vars = null;|' includes/installer/CliInstaller.php ''; - installPhase = let - phpConfig = writeText "LocalSettings.php" '' - - ''; - in '' + installPhase = '' runHook preInstall mkdir -p $out/share/mediawiki cp -r * $out/share/mediawiki - cp ${phpConfig} $out/share/mediawiki/LocalSettings.php + echo "" > $out/share/mediawiki/LocalSettings.php runHook postInstall '';