nix build: xo-ratio: build docs + examples
This commit is contained in:
parent
01dc1b057c
commit
ddd0afb623
2 changed files with 12 additions and 3 deletions
|
|
@ -77,7 +77,6 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
xo-ratio = self.callPackage pkgs/xo-ratio.nix { buildDocs = true; };
|
||||
xo-unit = self.callPackage pkgs/xo-unit.nix { buildDocs = true; };
|
||||
#
|
||||
xo-expression = self.callPackage pkgs/xo-expression.nix {};
|
||||
|
|
@ -108,6 +107,7 @@ let
|
|||
xo-reflectutil = self.callPackage pkgs/xo-reflectutil.nix {};
|
||||
xo-reflect = self.callPackage pkgs/xo-reflect.nix {};
|
||||
xo-pyreflect = self.callPackage pkgs/xo-pyreflect.nix {};
|
||||
xo-ratio = self.callPackage pkgs/xo-ratio.nix { buildDocs = true; buildExamples = true; };
|
||||
xo-pyunit = self.callPackage pkgs/xo-pyunit.nix {};
|
||||
#
|
||||
xo-callback = self.callPackage pkgs/xo-callback.nix {};
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@
|
|||
|
||||
doxygen, sphinx, graphviz,
|
||||
|
||||
xo-cmake, xo-flatstring, xo-reflectutil,
|
||||
xo-cmake, xo-flatstring, xo-reflectutil, xo-indentlog,
|
||||
|
||||
buildDocs ? false,
|
||||
buildExamples ? false,
|
||||
} :
|
||||
|
||||
stdenv.mkDerivation (finalattrs:
|
||||
|
|
@ -18,9 +19,13 @@ stdenv.mkDerivation (finalattrs:
|
|||
|
||||
src = ../xo-ratio;
|
||||
|
||||
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
|
||||
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"]
|
||||
++ lib.optionals buildDocs ["-DXO_ENABLE_DOCS=on"]
|
||||
++ lib.optionals buildExamples ["-DXO_ENABLE_EXAMPLES=on"];
|
||||
|
||||
inherit buildDocs;
|
||||
inherit buildExamples;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postBuild = lib.optionalString buildDocs ''
|
||||
|
|
@ -35,6 +40,9 @@ stdenv.mkDerivation (finalattrs:
|
|||
xo-flatstring
|
||||
xo-reflectutil
|
||||
]
|
||||
++ lib.optionals buildExamples [
|
||||
xo-indentlog
|
||||
]
|
||||
++ lib.optionals buildDocs [
|
||||
doxygen
|
||||
sphinx
|
||||
|
|
@ -42,5 +50,6 @@ stdenv.mkDerivation (finalattrs:
|
|||
python3Packages.sphinx-rtd-theme
|
||||
python3Packages.breathe
|
||||
python3Packages.sphinxcontrib-ditaa
|
||||
#python3Packages.sphinxcontrib-plantuml
|
||||
];
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue