+ xo-pyreflect

This commit is contained in:
Roland Conybeare 2025-05-10 21:07:46 -05:00
commit 6eaac6866f
4 changed files with 55 additions and 4 deletions

View file

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

View file

@ -47,7 +47,7 @@ let
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 {};
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-pyunit = self.callPackage pkgs/xo-pyunit.nix {};

51
pkgs/xo-pyreflect.nix Normal file
View file

@ -0,0 +1,51 @@
{
# nixpkgs dependencies
stdenv, cmake, catch2, # ... other deps here
python3Packages,
# xo dependencies
xo-cmake, xo-refcnt, xo-pyutil, xo-reflect,
# args
# attrset for fetching source code.
# { type, owner, repo, ref }
#
# e.g. type="github", owner="rconybea", repo="cmake-examples", ref="ex1b"
#
# see [[../flake.nix]]
#
#cmake-examples-ex1-path
# someconfigurationoption ? false
} :
stdenv.mkDerivation (finalattrs:
{
name = "xo-pyreflect";
version = "1.0";
outputs = [
"out"
];
src = ../xo-pyreflect;
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
doCheck = true;
propagatedBuildInputs = [
# xo-refcnt
xo-pyutil
xo-reflect
];
nativeBuildInputs = [
cmake
# catch2
xo-cmake
python3Packages.pybind11
];
})

View file

@ -32,10 +32,10 @@
xo-pyutil,
xo-reflectutil,
xo-reflect,
xo-pyreflect,
# xo-ratio,
# xo-unit,
# xo-pyunit,
# xo-pyreflect,
# xo-printjson,
# xo-pyprintjson,
# xo-callback,
@ -67,7 +67,7 @@ buildEnv {
xo-pyutil
xo-reflectutil
xo-reflect
# xo-pyreflect
xo-pyreflect
# xo-ratio
# xo-unit
# xo-pyunit