+ xo-unit

This commit is contained in:
Roland Conybeare 2025-05-11 00:57:37 -05:00
commit cb2ce5a5b8
5 changed files with 35 additions and 4 deletions

View file

@ -96,6 +96,9 @@ jobs:
echo "::group::xo-ratio build"
cmake --build .build -- xo-ratio
echo "::group::xo-unit build"
cmake --build .build -- xo-unit
echo "::group::xo build (catch all)"
cmake --build .build #--verbose

View file

@ -76,7 +76,7 @@ add_subdirectory(xo-reflectutil)
add_subdirectory(xo-reflect)
add_subdirectory(xo-pyreflect)
add_subdirectory(xo-ratio)
#add_subdirectory(xo-unit)
add_subdirectory(xo-unit)
#add_subdirectory(xo-pyunit)
#add_subdirectory(xo-expression)
#add_subdirectory(xo-pyexpression)

View file

@ -49,7 +49,7 @@ let
xo-reflect = self.callPackage pkgs/xo-reflect.nix {};
xo-pyreflect = self.callPackage pkgs/xo-pyreflect.nix {};
xo-ratio = self.callPackage pkgs/xo-ratio.nix {};
# xo-unit = self.callPackage pkgs/xo-unit.nix {};
xo-unit = self.callPackage pkgs/xo-unit.nix {};
# xo-pyunit = self.callPackage pkgs/xo-pyunit.nix {};
# xo-expression = self.callPackage pkgs/xo-expression.nix {};
# xo-pyexpression = self.callPackage pkgs/xo-pyexpression.nix {};

28
pkgs/xo-unit.nix Normal file
View file

@ -0,0 +1,28 @@
{
# dependencies
stdenv, cmake, catch2, doxygen,
python3Packages,
sphinx,
xo-cmake, xo-ratio, xo-flatstring,
} :
stdenv.mkDerivation (finalattrs:
{
name = "xo-unit";
version = "1.0";
src = ../xo-unit;
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
doCheck = true;
propagatedBuildInputs = [ xo-ratio xo-flatstring ];
nativeBuildInputs = [ cmake
catch2
doxygen
sphinx
xo-cmake
#python3Packages.sphinx-rtd-theme
];
})

View file

@ -34,7 +34,7 @@
xo-reflect,
xo-pyreflect,
xo-ratio,
# xo-unit,
xo-unit,
# xo-pyunit,
# xo-printjson,
# xo-pyprintjson,
@ -69,7 +69,7 @@ buildEnv {
xo-reflect
xo-pyreflect
xo-ratio
# xo-unit
xo-unit
# xo-pyunit
# xo-expression
# xo-pyexpression