1 { lib, stdenvNoCC, fetchurl, nixosTests }:
3 stdenvNoCC.mkDerivation rec {
8 url = "https://releases.wikimedia.org/mediawiki/${lib.versions.majorMinor version}/mediawiki-${version}.tar.gz";
9 hash = "sha256-7IevlaNd0Jw01S4CeVZSoDCrcpVeQx8IynIqc3N+ulM=";
13 sed -i 's|$vars = Installer::getExistingLocalSettings();|$vars = null;|' includes/installer/CliInstaller.php
19 mkdir -p $out/share/mediawiki
20 cp -r * $out/share/mediawiki
22 return require(getenv('MEDIAWIKI_CONFIG'));
23 ?>" > $out/share/mediawiki/LocalSettings.php
29 inherit (nixosTests.mediawiki) mysql postgresql;
33 description = "Collaborative editing software that runs Wikipedia";
34 license = licenses.gpl2Plus;
35 homepage = "https://www.mediawiki.org/";
36 platforms = platforms.all;
37 maintainers = with maintainers; [ ] ++ teams.c3d2.members;