Skip to content

Commit

Permalink
nix: fix build of dependencies
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
pinotree committed Jul 31, 2023
1 parent a2eceee commit 9547f91
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion nix/deps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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++";
Expand All @@ -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++";
Expand Down

0 comments on commit 9547f91

Please sign in to comment.