diff options
author | stuebinm | 2023-02-13 01:25:34 +0100 |
---|---|---|
committer | stuebinm | 2023-02-13 01:25:34 +0100 |
commit | 5a3c9f5ed5e064a795b7aeea842ca9410156c84a (patch) | |
tree | 4d546f9464898b113feb0872dce526f2d9851cf8 /flora/services | |
parent | ffd6d972b36068db61bc76951184af5dfc864b28 (diff) |
blog: add lux book
Diffstat (limited to 'flora/services')
-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 |