3
0
Fork 0
forked from mirrors/nixpkgs

ursadb: fix build w/glibc-2.34

Failing Hydra build: https://hydra.nixos.org/build/156279394
This commit is contained in:
Maximilian Bosch 2021-10-31 14:14:16 +01:00
parent 5f56cd5406
commit 18d915e48e
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -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/