pdfslicer: fix build w/glibc-2.34

Failing Hydra build: https://hydra.nixos.org/build/155183850
This commit is contained in:
Maximilian Bosch 2021-10-13 14:46:46 +02:00
parent 7c5781615f
commit d4593d4daf
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -24,6 +24,12 @@ stdenv.mkDerivation rec {
sha256 = "0sja0ddd9c8wjjpzk2ag8q1lxpj09adgmhd7wnsylincqnj2jyls";
};
postPatch = ''
# Don't build tests, vendored catch doesn't build with latest glibc.
substituteInPlace CMakeLists.txt \
--replace "add_subdirectory (tests)" ""
'';
nativeBuildInputs = [
cmake
gettext