adc7353bd1
This provides a nicer syntax to draw some diagrams. Change-Id: I2ab580e61399a45f01ed422ee29382e860753ffa Reviewed-on: https://cl.tvl.fyi/c/depot/+/11807 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: yuka <yuka@yuka.dev>
26 lines
491 B
Nix
26 lines
491 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "tvix-docs";
|
|
version = "0.1";
|
|
|
|
outputs = [ "out" ];
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
nativeBuildInputs = [
|
|
pkgs.d2
|
|
pkgs.mdbook
|
|
pkgs.mdbook-admonish
|
|
pkgs.mdbook-d2
|
|
pkgs.mdbook-plantuml
|
|
pkgs.plantuml
|
|
];
|
|
|
|
# plantuml wants to create ./.mdbook-plantuml-cache, which fails as $src is r/o.
|
|
# copy all sources elsewhere to workaround.
|
|
buildCommand = ''
|
|
cp -R $src/. .
|
|
mdbook build -d $out
|
|
'';
|
|
}
|