1 { lib, stdenvNoCC, fetchurl, imagemagick, nixosTests }:
3 stdenvNoCC.mkDerivation rec {
8 url = "https://releases.wikimedia.org/mediawiki/${lib.versions.majorMinor version}/mediawiki-${version}.tar.gz";
9 hash = "sha256-4FVjA/HYRnnNk5sykMyrP4nLxp02B/8dRJymxZU7ILw=";
13 sed -i 's|$vars = Installer::getExistingLocalSettings();|$vars = null;|' includes/installer/CliInstaller.php
15 # fix generating previews for SVGs
16 substituteInPlace includes/config-schema.php \
17 --replace-fail "\$path/convert" "${imagemagick}/bin/convert"
23 mkdir -p $out/share/mediawiki
24 cp -r * $out/share/mediawiki
26 return require(getenv('MEDIAWIKI_CONFIG'));
27 ?>" > $out/share/mediawiki/LocalSettings.php
33 inherit (nixosTests.mediawiki) mysql postgresql;
37 description = "Collaborative editing software that runs Wikipedia";
38 license = licenses.gpl2Plus;
39 homepage = "https://www.mediawiki.org/";
40 platforms = platforms.all;
41 maintainers = with maintainers; [ ] ++ teams.c3d2.members;