nix-build: + xo-allocutil

This commit is contained in:
Roland Conybeare 2026-02-26 11:47:40 +11:00
commit cc47795ad3
2 changed files with 32 additions and 0 deletions

31
pkgs/xo-allocutil.nix Normal file
View file

@ -0,0 +1,31 @@
{
# nixpkgs dependencies
stdenv, cmake, catch2,
# xo dependencies
xo-cmake,
# xo-randomgen,
# xo-reflectutil,
# xo-indentlog,
} :
stdenv.mkDerivation (finalattrs:
{
name = "xo-allocutil";
src = ../xo-allocutil;
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"
"-DENABLE_TESTING=1"
];
doCheck = true;
nativeBuildInputs = [
cmake catch2
xo-cmake
# xo-randomgen
];
propagatedBuildInputs = [
# xo-reflectutil
# xo-indentlog
];
})