nix-build: + xo-object + use clang 18 [WIP]

This commit is contained in:
Roland Conybeare 2026-02-27 11:36:20 +11:00
commit 1322a97a8b
2 changed files with 84 additions and 26 deletions

49
pkgs/xo-object.nix Normal file
View file

@ -0,0 +1,49 @@
{
# nixpkgs dependencies
lib, stdenv, cmake, catch2,
# xo dependencies
# xo-reflect,
# xo-webutil,
xo-callback,
xo-unit,
xo-refcnt,
xo-reflectutil,
xo-alloc,
xo-randomgen,
xo-cmake,
# xo-printjson,
# xo-ordinaltree,
xo-indentlog,
doCheck ? true,
} :
stdenv.mkDerivation (finalattrs:
{
name = "xo-object";
src = ../xo-object;
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"]
++ lib.optionals doCheck ["-DENABLE_TESTING=1"];
inherit doCheck;
nativeBuildInputs = [
cmake catch2
xo-randomgen
xo-cmake
];
propagatedBuildInputs = [
xo-callback
xo-unit
xo-refcnt
# xo-reflect
# xo-webutil
# xo-printjson
# xo-ordinaltree
xo-alloc
xo-reflectutil
xo-indentlog
];
})