From 9547f91409aa423bb06fb9d7e453f7729c883f2b Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 30 Jul 2023 17:07:36 +0200 Subject: [PATCH] nix: fix build of dependencies - fix the cmakeFlags specification for cereal, as it must be a string (and not a simple string) - build immer and zug explicitly disabling tests and examples, as they are neither run nor installed --- nix/deps.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nix/deps.nix b/nix/deps.nix index 6a9e8653..c0515aef 100644 --- a/nix/deps.nix +++ b/nix/deps.nix @@ -14,7 +14,9 @@ rec { sha256 = "17gwhwhih4737wzm24c45y3ch69jzw2mi8prj1pdlxff8f1pki8v"; }; nativeBuildInputs = [ cmake ]; - cmakeFlags="-DJUST_INSTALL_CEREAL=true"; + cmakeFlags = [ + "-DJUST_INSTALL_CEREAL=true" + ]; meta = with lib; { homepage = "http://uscilab.github.io/cereal"; description = "A C++11 library for serialization"; @@ -34,6 +36,10 @@ rec { }; dontUseCmakeBuildDir = true; nativeBuildInputs = [ cmake ]; + cmakeFlags = [ + "-Dimmer_BUILD_TESTS=OFF" + "-Dimmer_BUILD_EXAMPLES=OFF" + ]; meta = with lib; { homepage = "http://sinusoid.es/immer"; description = "Immutable data structures for C++"; @@ -53,6 +59,10 @@ rec { }; nativeBuildInputs = [ cmake ]; dontUseCmakeBuildDir = true; + cmakeFlags = [ + "-Dzug_BUILD_TESTS=OFF" + "-Dzug_BUILD_EXAMPLES=OFF" + ]; meta = with lib; { homepage = "http://sinusoid.es/zug"; description = "Transducers for C++";