mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
arangodb*: fix build w/glibc-2.34
Failing Hydra builds: * https://hydra.nixos.org/build/155187495 (3.3) * https://hydra.nixos.org/build/155161270 (3.4) * https://hydra.nixos.org/build/155154245 (3.5)
This commit is contained in:
parent
f8fc20df2b
commit
65f5fdb818
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, lib, fetchFromGitHub, openssl, zlib, cmake, python2, perl, snappy, lzo, which }:
|
||||
{ stdenv, lib, fetchFromGitHub, openssl, zlib, cmake, python2, perl, snappy, lzo, which, catch2, catch }:
|
||||
|
||||
let
|
||||
common = { version, sha256 }: stdenv.mkDerivation {
|
||||
|
@ -26,6 +26,14 @@ let
|
|||
# with nixpkgs, it has no sense to check for a version update
|
||||
substituteInPlace js/client/client.js --replace "require('@arangodb').checkAvailableVersions();" ""
|
||||
substituteInPlace js/server/server.js --replace "require('@arangodb').checkAvailableVersions();" ""
|
||||
|
||||
${if (lib.versionOlder version "3.4") then ''
|
||||
cp ${catch}/include/catch/catch.hpp 3rdParty/catch/catch.hpp
|
||||
'' else if (lib.versionOlder version "3.5") then ''
|
||||
cp ${catch2}/include/catch2/catch.hpp 3rdParty/catch/catch.hpp
|
||||
'' else ''
|
||||
(cd 3rdParty/boost/1.69.0 && patch -p1 < ${../../../development/libraries/boost/pthread-stack-min-fix.patch})
|
||||
''}
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
|
|
Loading…
Reference in a new issue