From 18d915e48e2ff34a525eac03ab0dba82ef89eceb Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 31 Oct 2021 14:14:16 +0100 Subject: [PATCH] ursadb: fix build w/glibc-2.34 Failing Hydra build: https://hydra.nixos.org/build/156279394 --- pkgs/servers/ursadb/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/servers/ursadb/default.nix b/pkgs/servers/ursadb/default.nix index 836a5934d96b..c9b39eccd8a8 100644 --- a/pkgs/servers/ursadb/default.nix +++ b/pkgs/servers/ursadb/default.nix @@ -11,6 +11,14 @@ stdenv.mkDerivation rec { hash = "sha256-/EK1CKJ0IR7fkKSpQkONbWcz6uhUoAwK430ljNYsV5U="; }; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace \ + "add_executable(ursadb_test Tests.cpp)" "" \ + --replace \ + "target_link_libraries(ursadb_test ursa)" "" + ''; + installPhase = '' mkdir -p $out/bin cp ursadb $out/bin/