infrastructure/packages/docs/default.nix

25 lines
355 B
Nix
Raw Normal View History

{
mdbook-cmdrun,
mdbook-plantuml,
mdbook,
plantuml,
self,
stdenv,
...
}:
2024-10-02 15:52:04 +02:00
let
version = self.rev or self.dirtyRev;
in
stdenv.mkDerivation {
2024-10-02 15:52:04 +02:00
inherit version;
name = "qois-docs-${version}";
buildInputs = [
2024-10-02 15:52:04 +02:00
mdbook
mdbook-cmdrun
mdbook-plantuml
plantuml
];
src = self;
2024-10-02 15:52:04 +02:00
buildPhase = "mdbook build --dest-dir $out";
}