xo-umbrella2/pkgs/xo-pyunit.nix
2025-05-11 01:02:05 -05:00

39 lines
775 B
Nix

{
# 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 ];
})