From 056d8c13ff5e1181e21ed57b23d111bccf150d38 Mon Sep 17 00:00:00 2001 From: sinavir Date: Sun, 24 Jul 2022 22:20:10 +0200 Subject: [PATCH] add dokuwiki addons --- pkgs/default.nix | 5 +++++ pkgs/servers/dokuwiki/pluginCatlist.nix | 16 ++++++++++++++++ pkgs/servers/dokuwiki/pluginCommonmark.nix | 14 ++++++++++++++ pkgs/servers/dokuwiki/pluginKeycloak.nix | 16 ++++++++++++++++ pkgs/servers/dokuwiki/pluginOauth.nix | 16 ++++++++++++++++ pkgs/servers/dokuwiki/templateBootstrap3.nix | 17 +++++++++++++++++ 6 files changed, 84 insertions(+) create mode 100644 pkgs/servers/dokuwiki/pluginCatlist.nix create mode 100644 pkgs/servers/dokuwiki/pluginCommonmark.nix create mode 100644 pkgs/servers/dokuwiki/pluginKeycloak.nix create mode 100644 pkgs/servers/dokuwiki/pluginOauth.nix create mode 100644 pkgs/servers/dokuwiki/templateBootstrap3.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 862bbb9..6e9bb15 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -9,6 +9,11 @@ let callPackage f (subsetArgs // extraArgs); self = rec { acme-dns = callPackage ./servers/acme-dns.nix {}; + dokuwikiAddons.template.bootstrap3 = callPackage ./servers/dokuwiki/templateBootstrap3.nix; + dokuwikiAddons.plugins.commonmark = callPackage ./servers/dokuwiki/pluginCommonmark.nix; + dokuwikiAddons.plugins.catlist = callPackage ./servers/dokuwiki/pluginCatlist.nix; + dokuwikiAddons.plugins.oauth = callPackage ./servers/dokuwiki/pluginOauth.nix; + dokuwikiAddons.plugins.keycloak = callPackage ./servers/dokuwiki/pluginKeycloak.nix; }; in self diff --git a/pkgs/servers/dokuwiki/pluginCatlist.nix b/pkgs/servers/dokuwiki/pluginCatlist.nix new file mode 100644 index 0000000..75367ab --- /dev/null +++ b/pkgs/servers/dokuwiki/pluginCatlist.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation { + name = "catlist"; + # Download the theme from the dokuwiki site + src = fetchFromGitHub { + owner = "xif-fr"; + repo = "dokuwiki-plugin-catlist"; + rev = "065f8d2f4817409989b9342b901163452fb9f547"; + sha256 = "1l7bvnqkai8qkqqb67w8yy7fbs30dviqc36pyqggzfjhi558i9ih"; + }; + # Installing simply means copying all files to the output directory + installPhase = '' + mkdir -p $out + cp -R * $out/ + ''; +} diff --git a/pkgs/servers/dokuwiki/pluginCommonmark.nix b/pkgs/servers/dokuwiki/pluginCommonmark.nix new file mode 100644 index 0000000..6d9794b --- /dev/null +++ b/pkgs/servers/dokuwiki/pluginCommonmark.nix @@ -0,0 +1,14 @@ +{ stdenv, fetchzip }: +stdenv.mkDerivation { + name = "commonmark"; + # Download the theme from the dokuwiki site + src = fetchzip { + url = "https://github.com/clockoon/dokuwiki-plugin-commonmark/releases/download/v1.2.0/release.tar.gz"; + sha256 = "10SVyqkbkwzF/m4aTHB/ssXJK5rjQbLxYOAFDKYOxTY="; + }; + # Installing simply means copying all files to the output directory + installPhase = '' + mkdir -p $out + cp -R * $out/ + ''; +} diff --git a/pkgs/servers/dokuwiki/pluginKeycloak.nix b/pkgs/servers/dokuwiki/pluginKeycloak.nix new file mode 100644 index 0000000..509964e --- /dev/null +++ b/pkgs/servers/dokuwiki/pluginKeycloak.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation { + name = "oauth"; + # Download the theme from the dokuwiki site + src = fetchFromGitHub { + owner = "cosmocode"; + repo = "dokuwiki-plugin-oauth"; + rev = "2022-01-13"; + sha256 = "ruaw8MqSMgopULD7vxed44nbowjVc1e4H0Q7JEL9pD0="; + }; + # Installing simply means copying all files to the output directory + installPhase = '' + mkdir -p $out + cp -R * $out/ + ''; +} diff --git a/pkgs/servers/dokuwiki/pluginOauth.nix b/pkgs/servers/dokuwiki/pluginOauth.nix new file mode 100644 index 0000000..8da388b --- /dev/null +++ b/pkgs/servers/dokuwiki/pluginOauth.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation { + name = "oauth"; + # Download the theme from the dokuwiki site + src = fetchFromGitHub { + owner = "cosmocode"; + repo = "dokuwiki-plugin-oauth"; + rev = "2022-01-13"; + sha256 = "ruaw8MqSMgopULD7vxed44nbowjVc1e4H0Q7JEL9pD0="; + }; + # Installing simply means copying all files to the output directory + installPhase = '' + mkdir -p $out + cp -R * $out/ + ''; +} diff --git a/pkgs/servers/dokuwiki/templateBootstrap3.nix b/pkgs/servers/dokuwiki/templateBootstrap3.nix new file mode 100644 index 0000000..8c29a9a --- /dev/null +++ b/pkgs/servers/dokuwiki/templateBootstrap3.nix @@ -0,0 +1,17 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation { + name = "bootstrap3"; + # Download the theme from the dokuwiki site + src = fetchFromGitHub { + owner = "giterlizzi"; + repo = "dokuwiki-template-bootstrap3"; + rev="v2020-07-29"; + sha256="05d6si1lci3a2pgd10iwpwrgl969y7gq4qsn5p1lbgxkraad17af"; + }; + # Installing simply means copying all files to the output directory + installPhase = '' + mkdir -p $out + cp -R * $out/ + echo " $out/doku_inc.php # Lien vers le dokuwiki + ''; +}