+ xo-pyutil

This commit is contained in:
Roland Conybeare 2025-05-10 19:40:29 -05:00
commit 44c135489e
4 changed files with 29 additions and 4 deletions

View file

@ -71,7 +71,7 @@ add_subdirectory(xo-subsys)
add_subdirectory(xo-randomgen)
add_subdirectory(xo-ordinaltree)
add_subdirectory(xo-flatstring)
#add_subdirectory(xo-pyutil)
add_subdirectory(xo-pyutil)
#add_subdirectory(xo-reflectutil)
#add_subdirectory(xo-reflect)
#add_subdirectory(xo-pyreflect)

View file

@ -44,7 +44,7 @@ let
xo-randomgen = self.callPackage pkgs/xo-randomgen.nix {};
xo-ordinaltree = self.callPackage pkgs/xo-ordinaltree.nix {};
xo-flatstring = self.callPackage pkgs/xo-flatstring.nix {};
# xo-pyutil = self.callPackage pkgs/xo-pyutil.nix {};
xo-pyutil = self.callPackage pkgs/xo-pyutil.nix {};
# xo-reflectutil = self.callPackage pkgs/xo-reflectutil.nix {};
# xo-reflect = self.callPackage pkgs/xo-reflect.nix {};
# xo-pyreflect = self.callPackage pkgs/xo-pyreflect.nix {};

25
pkgs/xo-pyutil.nix Normal file
View file

@ -0,0 +1,25 @@
{
# nixpkgs dependencies
stdenv, cmake, catch2,
python3Packages,
# xo dependencies
xo-cmake, xo-refcnt,
} :
stdenv.mkDerivation (finalattrs:
{
name = "xo-pyutil";
src = ../xo-pyutil;
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
#doCheck = true;
nativeBuildInputs = [ cmake catch2 xo-cmake ];
propagatedBuildInputs = [
xo-refcnt
python3Packages.python
python3Packages.pybind11
];
})

View file

@ -29,11 +29,11 @@
xo-randomgen,
xo-ordinaltree,
xo-flatstring,
xo-pyutil,
# xo-reflectutil,
# xo-ratio,
# xo-unit,
# xo-pyunit,
# xo-pyutil,
# xo-reflect,
# xo-pyreflect,
# xo-printjson,
@ -64,7 +64,7 @@ buildEnv {
xo-randomgen
xo-ordinaltree
xo-flatstring
# xo-pyutil
xo-pyutil
# xo-reflectutil
# xo-reflect
# xo-pyreflect