add dokuwiki addons

This commit is contained in:
sinavir 2022-07-24 22:20:10 +02:00
parent 01917aa501
commit 056d8c13ff
6 changed files with 84 additions and 0 deletions

View file

@ -9,6 +9,11 @@ let
callPackage f (subsetArgs // extraArgs); callPackage f (subsetArgs // extraArgs);
self = rec { self = rec {
acme-dns = callPackage ./servers/acme-dns.nix {}; 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 in
self self

View file

@ -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/
'';
}

View file

@ -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/
'';
}

View file

@ -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/
'';
}

View file

@ -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/
'';
}

View file

@ -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 "<?php define('DOKU_INC', getenv('DOKUWIKI_ROOT'));" > $out/doku_inc.php # Lien vers le dokuwiki
'';
}