···180180 '';
181181 example = literalExpression ''
182182 let
183183- # Let's package the icalevents plugin
184184- plugin-icalevents = pkgs.stdenv.mkDerivation {
183183+ plugin-icalevents = pkgs.stdenv.mkDerivation rec {
185184 name = "icalevents";
186186- # Download the plugin from the dokuwiki site
187187- src = pkgs.fetchurl {
188188- url = "https://github.com/real-or-random/dokuwiki-plugin-icalevents/releases/download/2017-06-16/dokuwiki-plugin-icalevents-2017-06-16.zip";
189189- sha256 = "e40ed7dd6bbe7fe3363bbbecb4de481d5e42385b5a0f62f6a6ce6bf3a1f9dfa8";
185185+ version = "2017-06-16";
186186+ src = pkgs.fetchzip {
187187+ stripRoot = false;
188188+ url = "https://github.com/real-or-random/dokuwiki-plugin-icalevents/releases/download/''${version}/dokuwiki-plugin-icalevents-''${version}.zip";
189189+ hash = "sha256-IPs4+qgEfe8AAWevbcCM9PnyI0uoyamtWeg4rEb+9Wc=";
190190 };
191191- sourceRoot = ".";
192192- # We need unzip to build this package
193193- buildInputs = [ pkgs.unzip ];
194194- # Installing simply means copying all files to the output directory
195191 installPhase = "mkdir -p $out; cp -R * $out/";
196192 };
197193 # And then pass this theme to the plugin list like this:
···211207 '';
212208 example = literalExpression ''
213209 let
214214- # Let's package the bootstrap3 theme
215215- template-bootstrap3 = pkgs.stdenv.mkDerivation {
216216- name = "bootstrap3";
217217- # Download the theme from the dokuwiki site
218218- src = pkgs.fetchurl {
219219- url = "https://github.com/giterlizzi/dokuwiki-template-bootstrap3/archive/v2019-05-22.zip";
220220- sha256 = "4de5ff31d54dd61bbccaf092c9e74c1af3a4c53e07aa59f60457a8f00cfb23a6";
221221- };
222222- # We need unzip to build this package
223223- buildInputs = [ pkgs.unzip ];
224224- # Installing simply means copying all files to the output directory
225225- installPhase = "mkdir -p $out; cp -R * $out/";
210210+ template-bootstrap3 = pkgs.stdenv.mkDerivation rec {
211211+ name = "bootstrap3";
212212+ version = "2022-07-27";
213213+ src = pkgs.fetchFromGitHub {
214214+ owner = "giterlizzi";
215215+ repo = "dokuwiki-template-bootstrap3";
216216+ rev = "v''${version}";
217217+ hash = "sha256-B3Yd4lxdwqfCnfmZdp+i/Mzwn/aEuZ0ovagDxuR6lxo=";
226218 };
219219+ installPhase = "mkdir -p $out; cp -R * $out/";
220220+ };
227221 # And then pass this theme to the template list like this:
228222 in [ template-bootstrap3 ]
229223 '';
···310304 Further nginx configuration can be done by adapting `services.nginx.virtualHosts.<name>`.
311305 See [](#opt-services.nginx.virtualHosts) for further information.
312306313313- Further apache2 configuration can be done by adapting `services.httpd.virtualHosts.<name>`.
314314- See [](#opt-services.httpd.virtualHosts) for further information.
307307+ Further caddy configuration can be done by adapting `services.caddy.virtualHosts.<name>`.
308308+ See [](#opt-services.caddy.virtualHosts) for further information.
315309 '';
316310 };
317311