From b43a3567eca70579e2a34e5fba3fda6154ea142f Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 28 Jan 2022 19:50:19 +0100 Subject: [PATCH] cpp-hocon: fix build w/glibc-2.34 Simply disable tests as it tries to pull in an old `catch2` from `leatherman`. Failing Hydra build: https://hydra.nixos.org/build/163982252 --- pkgs/development/libraries/cpp-hocon/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/cpp-hocon/default.nix b/pkgs/development/libraries/cpp-hocon/default.nix index dfe7f7776703..bba2e03f8d59 100644 --- a/pkgs/development/libraries/cpp-hocon/default.nix +++ b/pkgs/development/libraries/cpp-hocon/default.nix @@ -11,6 +11,10 @@ stdenv.mkDerivation rec { owner = "puppetlabs"; }; + postPatch = '' + sed -i -e '/add_subdirectory(tests)/d' lib/CMakeLists.txt + ''; + NIX_CFLAGS_COMPILE = "-Wno-error"; nativeBuildInputs = [ cmake ];