xo-umbrella2/pkgs/xo-reactor2websock.nix
Roland Conybeare a5097a5baf
Some checks failed
cmake-docker / cmake-build (clang, clang++) (push) Failing after 39m14s
cmake-docker / cmake-build (gcc, g++) (push) Failing after 38m23s
CI / smoke-test (push) Successful in 10m52s
xo-reactor2websock: + REactorWebSocketSink [REFACTOR]
Originally provided by xo-reactor.
2026-09-26 13:46:22 -04:00

40 lines
865 B
Nix

{
# nixpkgs dependencies
lib, stdenv, cmake, catch2,
# xo dependencies
xo-cmake,
xo-reactor,
xo-websock,
xo-webutil,
# test-only: shared utest main (UtestAppStart)
xo-testutil,
doCheck ? true,
} :
stdenv.mkDerivation (finalattrs:
{
name = "xo-reactor2websock";
src = ../xo-reactor2websock;
# ENABLE_TESTING alongside doCheck: utest/CMakeLists.txt registers the
# tests inside `if (ENABLE_TESTING)`, so without it ctest finds nothing
# and reports success.
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"]
++ lib.optionals doCheck ["-DENABLE_TESTING=1"];
inherit doCheck;
nativeBuildInputs = [
cmake catch2 xo-cmake
]
++ lib.optionals doCheck [
xo-testutil
];
propagatedBuildInputs = [
xo-reactor
xo-websock
xo-webutil
];
})