nix: xo-ratio xo-unit build docs
This commit is contained in:
parent
b38ebddf8d
commit
4bc6cc79c5
3 changed files with 51 additions and 19 deletions
|
|
@ -83,8 +83,8 @@ 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-unit = self.callPackage pkgs/xo-unit.nix {};
|
||||
xo-ratio = self.callPackage pkgs/xo-ratio.nix { buildDocs = true; };
|
||||
xo-unit = self.callPackage pkgs/xo-unit.nix { buildDocs = true; };
|
||||
xo-pyunit = self.callPackage pkgs/xo-pyunit.nix {};
|
||||
#
|
||||
xo-callback = self.callPackage pkgs/xo-callback.nix {};
|
||||
|
|
|
|||
|
|
@ -19,14 +19,28 @@ stdenv.mkDerivation (finalattrs:
|
|||
src = ../xo-ratio;
|
||||
|
||||
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
|
||||
|
||||
inherit buildDocs;
|
||||
doCheck = true;
|
||||
nativeBuildInputs = [ cmake
|
||||
#catch2
|
||||
doxygen
|
||||
sphinx
|
||||
# python3Packages.sphinx-rtd-theme
|
||||
xo-cmake
|
||||
xo-flatstring
|
||||
xo-reflectutil
|
||||
];
|
||||
|
||||
postBuild = lib.optionalString buildDocs ''
|
||||
cmake --build . -- docs
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
xo-cmake
|
||||
xo-flatstring
|
||||
xo-reflectutil
|
||||
]
|
||||
++ lib.optionals buildDocs [
|
||||
doxygen
|
||||
sphinx
|
||||
graphviz
|
||||
python3Packages.sphinx-rtd-theme
|
||||
python3Packages.breathe
|
||||
python3Packages.sphinxcontrib-ditaa
|
||||
];
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
{
|
||||
# dependencies
|
||||
stdenv, cmake, catch2, doxygen,
|
||||
lib, stdenv, cmake, catch2,
|
||||
|
||||
python3Packages,
|
||||
sphinx,
|
||||
|
||||
doxygen, sphinx, graphviz,
|
||||
|
||||
xo-cmake, xo-ratio, xo-flatstring,
|
||||
|
||||
buildDocs ? false,
|
||||
} :
|
||||
|
||||
stdenv.mkDerivation (finalattrs:
|
||||
|
|
@ -16,13 +19,28 @@ stdenv.mkDerivation (finalattrs:
|
|||
src = ../xo-unit;
|
||||
|
||||
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
|
||||
|
||||
inherit buildDocs;
|
||||
doCheck = true;
|
||||
|
||||
postBuild = lib.optionalString buildDocs ''
|
||||
cmake --build . -- docs
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ xo-ratio xo-flatstring ];
|
||||
nativeBuildInputs = [ cmake
|
||||
catch2
|
||||
doxygen
|
||||
sphinx
|
||||
xo-cmake
|
||||
#python3Packages.sphinx-rtd-theme
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
catch2
|
||||
xo-cmake
|
||||
]
|
||||
++ lib.optionals buildDocs [
|
||||
doxygen
|
||||
sphinx
|
||||
graphviz
|
||||
python3Packages.sphinx-rtd-theme
|
||||
python3Packages.breathe
|
||||
python3Packages.sphinxcontrib-ditaa
|
||||
python3Packages.sphinxcontrib-plantuml
|
||||
];
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue