···180 '';
181 example = literalExpression ''
182 let
183- # Let's package the icalevents plugin
184- plugin-icalevents = pkgs.stdenv.mkDerivation {
185 name = "icalevents";
186- # Download the plugin from the dokuwiki site
187- src = pkgs.fetchurl {
188- url = "https://github.com/real-or-random/dokuwiki-plugin-icalevents/releases/download/2017-06-16/dokuwiki-plugin-icalevents-2017-06-16.zip";
189- sha256 = "e40ed7dd6bbe7fe3363bbbecb4de481d5e42385b5a0f62f6a6ce6bf3a1f9dfa8";
0190 };
191- sourceRoot = ".";
192- # We need unzip to build this package
193- buildInputs = [ pkgs.unzip ];
194- # Installing simply means copying all files to the output directory
195 installPhase = "mkdir -p $out; cp -R * $out/";
196 };
197 # And then pass this theme to the plugin list like this:
···211 '';
212 example = literalExpression ''
213 let
214- # Let's package the bootstrap3 theme
215- template-bootstrap3 = pkgs.stdenv.mkDerivation {
216- name = "bootstrap3";
217- # Download the theme from the dokuwiki site
218- src = pkgs.fetchurl {
219- url = "https://github.com/giterlizzi/dokuwiki-template-bootstrap3/archive/v2019-05-22.zip";
220- sha256 = "4de5ff31d54dd61bbccaf092c9e74c1af3a4c53e07aa59f60457a8f00cfb23a6";
221- };
222- # We need unzip to build this package
223- buildInputs = [ pkgs.unzip ];
224- # Installing simply means copying all files to the output directory
225- installPhase = "mkdir -p $out; cp -R * $out/";
226 };
00227 # And then pass this theme to the template list like this:
228 in [ template-bootstrap3 ]
229 '';
···310 Further nginx configuration can be done by adapting `services.nginx.virtualHosts.<name>`.
311 See [](#opt-services.nginx.virtualHosts) for further information.
312313- Further apache2 configuration can be done by adapting `services.httpd.virtualHosts.<name>`.
314- See [](#opt-services.httpd.virtualHosts) for further information.
315 '';
316 };
317
···180 '';
181 example = literalExpression ''
182 let
183+ plugin-icalevents = pkgs.stdenv.mkDerivation rec {
0184 name = "icalevents";
185+ version = "2017-06-16";
186+ src = pkgs.fetchzip {
187+ stripRoot = false;
188+ url = "https://github.com/real-or-random/dokuwiki-plugin-icalevents/releases/download/''${version}/dokuwiki-plugin-icalevents-''${version}.zip";
189+ hash = "sha256-IPs4+qgEfe8AAWevbcCM9PnyI0uoyamtWeg4rEb+9Wc=";
190 };
0000191 installPhase = "mkdir -p $out; cp -R * $out/";
192 };
193 # And then pass this theme to the plugin list like this:
···207 '';
208 example = literalExpression ''
209 let
210+ template-bootstrap3 = pkgs.stdenv.mkDerivation rec {
211+ name = "bootstrap3";
212+ version = "2022-07-27";
213+ src = pkgs.fetchFromGitHub {
214+ owner = "giterlizzi";
215+ repo = "dokuwiki-template-bootstrap3";
216+ rev = "v''${version}";
217+ hash = "sha256-B3Yd4lxdwqfCnfmZdp+i/Mzwn/aEuZ0ovagDxuR6lxo=";
0000218 };
219+ installPhase = "mkdir -p $out; cp -R * $out/";
220+ };
221 # And then pass this theme to the template list like this:
222 in [ template-bootstrap3 ]
223 '';
···304 Further nginx configuration can be done by adapting `services.nginx.virtualHosts.<name>`.
305 See [](#opt-services.nginx.virtualHosts) for further information.
306307+ Further caddy configuration can be done by adapting `services.caddy.virtualHosts.<name>`.
308+ See [](#opt-services.caddy.virtualHosts) for further information.
309 '';
310 };
311