services/lantifa: set mediawiki-version from 21.11

due to a wikiDB issue the mediawiki version in unstable (37) is not
compatible.
switching to 21.05 would mean a downgrade, so this is the hack until we
fully upgrade to 21.11
keep-around/2a1e6925224f0eefae0300b0f99f93a02098ba42
schweby 2021-12-11 13:20:42 +01:00
parent af8b16117f
commit 2a1e692522
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, profiles, modules, evalConfig, ... }:
let
unstable = import (import ../nix/sources.nix).nixpkgs-unstable {};
new = import (import ../nix/sources.nix).nixpkgs-new {};
in {
containers.lantifa = {
autoStart = true;
@ -37,13 +37,13 @@ in {
services.mediawiki = {
enable = true;
name = "LANtifa";
package = unstable.mediawiki;
package = new.mediawiki;
database.createLocally = true;
passwordFile = "/var/lib/mediawiki/mediawiki-password";
extraConfig = let
wikidb = pkgs.fetchzip {
url = "http://www.kennel17.co.uk/uploads/testwiki/archive/e/e9/20210407232657%21WikiDB.zip";
sha256 = "0d4f2ygglz4w515a7lgw59500q3xmr92xxhsmh8p204yaa769x8v";
url = "https://www.kennel17.co.uk/uploads/testwiki/e/e9/WikiDB.zip";
sha256 = "0pns9fk1ws54m7rgbfsrxqh6ayab16mmnvzba8m4malljgrbil8b";
};
in ''
// Configure short URLs