+ xo-pyunit

This commit is contained in:
Roland Conybeare 2025-05-11 01:02:05 -05:00
commit d0f5ccc1ce
5 changed files with 45 additions and 3 deletions

View file

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

View file

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

View file

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

39
pkgs/xo-pyunit.nix Normal file
View file

@ -0,0 +1,39 @@
{
# nixpkgs dependencies
stdenv, cmake, catch2, # ... other deps here
# xo dependencies
xo-cmake, #xo-refcnt,
xo-pyutil, #xo-reflect,
xo-unit,
# 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-pyunit";
version = "1.0";
src = ../xo-pyunit;
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
doCheck = true;
nativeBuildInputs = [ cmake catch2 xo-cmake ];
propagatedBuildInputs = [
#xo-refcnt
xo-pyutil
#xo-reflect
xo-unit ];
})

View file

@ -70,7 +70,7 @@ buildEnv {
xo-pyreflect
xo-ratio
xo-unit
# xo-pyunit
xo-pyunit
# xo-expression
# xo-pyexpression
# xo-tokenizer