+ xo-ratio

This commit is contained in:
Roland Conybeare 2025-05-10 21:28:17 -05:00
commit e9ee6992ca
5 changed files with 37 additions and 6 deletions

View file

@ -93,8 +93,8 @@ jobs:
echo "::group::xo-pyreflect build"
cmake --build .build -- xo-pyreflect
#echo "::group::xo-ratio build"
#cmake --build .build -- xo-ratio
echo "::group::xo-ratio build"
cmake --build .build -- xo-ratio
echo "::group::xo build (catch all)"
cmake --build .build #--verbose

View file

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

View file

@ -48,7 +48,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 {};
xo-ratio = self.callPackage pkgs/xo-ratio.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 {};

31
pkgs/xo-ratio.nix Normal file
View file

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

View file

@ -33,7 +33,7 @@
xo-reflectutil,
xo-reflect,
xo-pyreflect,
# xo-ratio,
xo-ratio,
# xo-unit,
# xo-pyunit,
# xo-printjson,
@ -68,7 +68,7 @@ buildEnv {
xo-reflectutil
xo-reflect
xo-pyreflect
# xo-ratio
xo-ratio
# xo-unit
# xo-pyunit
# xo-expression