nix build: xo-flatstring: build docs + examples
This commit is contained in:
parent
70f3f4e486
commit
01dc1b057c
2 changed files with 10 additions and 4 deletions
|
|
@ -77,7 +77,6 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
xo-flatstring = self.callPackage pkgs/xo-flatstring.nix { buildDocs = true; };
|
||||
xo-ratio = self.callPackage pkgs/xo-ratio.nix { buildDocs = true; };
|
||||
xo-unit = self.callPackage pkgs/xo-unit.nix { buildDocs = true; };
|
||||
#
|
||||
|
|
@ -104,6 +103,7 @@ let
|
|||
xo-subsys = self.callPackage pkgs/xo-subsys.nix {};
|
||||
xo-randomgen = self.callPackage pkgs/xo-randomgen.nix { buildExamples = true; };
|
||||
xo-ordinaltree = self.callPackage pkgs/xo-ordinaltree.nix {};
|
||||
xo-flatstring = self.callPackage pkgs/xo-flatstring.nix { buildDocs = true; buildExamples = true; };
|
||||
xo-pyutil = self.callPackage pkgs/xo-pyutil.nix {};
|
||||
xo-reflectutil = self.callPackage pkgs/xo-reflectutil.nix {};
|
||||
xo-reflect = self.callPackage pkgs/xo-reflect.nix {};
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
xo-cmake, xo-indentlog,
|
||||
|
||||
buildDocs ? false,
|
||||
buildExamples ? false,
|
||||
} :
|
||||
|
||||
stdenv.mkDerivation (finalattrs:
|
||||
|
|
@ -29,9 +30,13 @@ stdenv.mkDerivation (finalattrs:
|
|||
# guessing may need this for doxygen etc
|
||||
# env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
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 ''
|
||||
|
|
@ -54,7 +59,8 @@ stdenv.mkDerivation (finalattrs:
|
|||
graphviz
|
||||
python3Packages.sphinx-rtd-theme
|
||||
python3Packages.breathe
|
||||
]
|
||||
;
|
||||
python3Packages.sphinxcontrib-ditaa
|
||||
python3Packages.sphinxcontrib-plantuml
|
||||
];
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue