about summary refs log blame commit diff
path: root/tvix/docs/default.nix
blob: 27a253f3e3115b8b91b5c9704c7e1a09c8366885 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                   
                          
                      

                  
                      
 

                            
                       
               
                        
                        
                 

    




                                                                                  
     
 
{ pkgs, lib, ... }:

pkgs.stdenv.mkDerivation {
  pname = "tvix-docs";
  version = "0.1";

  outputs = [ "out" ];

  src = lib.cleanSource ./.;

  nativeBuildInputs = [
    pkgs.mdbook
    pkgs.mdbook-admonish
    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
  '';
}