From 161ef284bea1d94ff93607a0ec6059dc55817947 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 6 Apr 2024 20:55:53 +0200 Subject: [PATCH 1/2] packages: add mediawiki-extensions.VisualEditor --- packages/mediawiki-extensions/default.nix | 1 + packages/mediawiki-extensions/visual-editor/default.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 packages/mediawiki-extensions/visual-editor/default.nix diff --git a/packages/mediawiki-extensions/default.nix b/packages/mediawiki-extensions/default.nix index 72117b9..b7195c8 100644 --- a/packages/mediawiki-extensions/default.nix +++ b/packages/mediawiki-extensions/default.nix @@ -4,4 +4,5 @@ lib.makeScope pkgs.newScope (self: { PluggableAuth = self.callPackage ./pluggable-auth { }; SimpleSAMLphp = self.callPackage ./simple-saml-php { }; UserMerge = self.callPackage ./user-merge { }; + VisualEditor = self.callPackage ./visual-editor { }; }) diff --git a/packages/mediawiki-extensions/visual-editor/default.nix b/packages/mediawiki-extensions/visual-editor/default.nix new file mode 100644 index 0000000..cfb9a0c --- /dev/null +++ b/packages/mediawiki-extensions/visual-editor/default.nix @@ -0,0 +1,7 @@ +{ fetchzip }: + +fetchzip { + name = "mediawiki-visual-editor-source"; + url = "https://extdist.wmflabs.org/dist/extensions/VisualEditor-REL1_40-5f8c97e.tar.gz"; + hash = "sha256-oBMmEDKsFxrD0tpN2dy264IXK164BrZWrNK3v3FNX6w="; +} From 6e1b06731f46fe70054448e36e8971c4739ca53e Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 6 Apr 2024 21:09:01 +0200 Subject: [PATCH 2/2] bekkalokk: add VisualEditor to mediawiki extensions --- hosts/bekkalokk/services/mediawiki/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/bekkalokk/services/mediawiki/default.nix b/hosts/bekkalokk/services/mediawiki/default.nix index f9ca17b..7be22c0 100644 --- a/hosts/bekkalokk/services/mediawiki/default.nix +++ b/hosts/bekkalokk/services/mediawiki/default.nix @@ -85,7 +85,7 @@ in { }; extensions = { - inherit (pkgs.mediawiki-extensions) DeleteBatch UserMerge PluggableAuth SimpleSAMLphp; + inherit (pkgs.mediawiki-extensions) DeleteBatch UserMerge PluggableAuth SimpleSAMLphp VisualEditor; }; extraConfig = ''