Packaging du template

This commit is contained in:
Maurice Debray 2022-03-11 10:07:45 +01:00
parent 3cec747997
commit 752944e9f6

View file

@ -9,7 +9,7 @@
$conf['title'] = 'hackEns';
$conf['start'] = 'accueil';
$conf['lang'] = 'fr';
$conf['template'] = 'starter-bootstrap';
$conf['template'] = 'bootstrap3';
$conf['license'] = '0';
$conf['breadcrumbs'] = 0;
$conf['htmlok'] = 1;
@ -31,5 +31,22 @@
disableActions = "register";
superUser = "@admin";
# Il faut packager les templates
templates = let
template-bootstrap3 = pkgs.stdenv.mkDerivation {
name = "bootstrap3";
# Download the theme from the dokuwiki site
src = pkgs.fetchurl {
url = "https://github.com/giterlizzi/dokuwiki-template-bootstrap3/archive/v2019-05-22.zip";
sha256 = "4de5ff31d54dd61bbccaf092c9e74c1af3a4c53e07aa59f60457a8f00cfb23a6";
};
# We need unzip to build this package
buildInputs = [ pkgs.unzip ];
# Installing simply means copying all files to the output directory
installPhase = "mkdir -p $out; cp -R * $out/";
};
# And then pass this theme to the template list like this:
in [ template-bootstrap3 ];
};
}