59 lines
924 B
Nix
59 lines
924 B
Nix
{
|
|
# nixpkgs dependencies
|
|
stdenv, cmake, catch2, # ... other deps here
|
|
|
|
python3Packages,
|
|
|
|
# xo dependencies
|
|
xo-cmake,
|
|
|
|
xo-webutil,
|
|
#xo-refcnt,
|
|
#xo-pyutil,
|
|
#xo-reflect,
|
|
|
|
xo-pyutil,
|
|
|
|
# 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-pywebutil";
|
|
version = "1.0";
|
|
|
|
outputs = [
|
|
"out"
|
|
];
|
|
|
|
src = ../xo-pywebutil;
|
|
|
|
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
|
|
doCheck = true;
|
|
|
|
propagatedBuildInputs = [
|
|
# xo-refcnt
|
|
xo-pyutil
|
|
xo-webutil
|
|
# xo-reflect
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
# catch2
|
|
xo-cmake
|
|
python3Packages.pybind11
|
|
];
|
|
|
|
})
|