diff options
Diffstat (limited to 'flora')
-rw-r--r-- | flora/services/blog.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/flora/services/blog.nix b/flora/services/blog.nix index 15c0646..e78152f 100644 --- a/flora/services/blog.nix +++ b/flora/services/blog.nix @@ -1,6 +1,23 @@ { config, lib, pkgs, inputs, ... }: let + lux = pkgs.stdenv.mkDerivation { + name = "gtfs-mdbooks"; + src = pkgs.fetchgit { + url = "https://stuebinm.eu/git/lux"; + rev = "refs/heads/master"; + sha256 = "sha256-L2y5SEGOaoWl+jQGP3TmpQQLojjkRAjiRjbwhGKOg14="; + }; + buildInputs = [ pkgs.mdbook ]; + buildPhase = '' + cd documentation/book + mdbook build + ''; + installPhase = '' + mkdir -p $out + cp -r book/* $out + ''; + }; gtfsBooks = pkgs.stdenv.mkDerivation { name = "gtfs-mdbooks"; src = inputs.gtfsBooks; @@ -12,6 +29,7 @@ let mkdir -p $out mv gtfs-book-html $out/gtfs mv gtfs-realtime-book-html $out/gtfs-realtime + cp -r ${lux.outPath} $out/lux ''; }; in |