diff options
author | Robert Helgesson <robert@rycee.net> | 2016-08-17 22:31:07 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2016-08-17 22:34:17 +0200 |
commit | a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c (patch) | |
tree | 868cf398dc1b6bb07af025c850e2f98e4fe0b966 /pkgs/servers/http/redstore | |
parent | 80c98d76ca4cc138e45ef5a86294663c1ecb790e (diff) | |
download | nixlib-a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c.tar nixlib-a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c.tar.gz nixlib-a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c.tar.bz2 nixlib-a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c.tar.lz nixlib-a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c.tar.xz nixlib-a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c.tar.zst nixlib-a4ae7b87f0e79960615fc77bd80fb5cadbf4f22c.zip |
redstore: fix build under recent glibc
Previously the build would fail due to, e.g., `getaddrinfo` not being defined.
Diffstat (limited to 'pkgs/servers/http/redstore')
-rw-r--r-- | pkgs/servers/http/redstore/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/servers/http/redstore/default.nix b/pkgs/servers/http/redstore/default.nix index c47449ce6bd7..d5531234b89a 100644 --- a/pkgs/servers/http/redstore/default.nix +++ b/pkgs/servers/http/redstore/default.nix @@ -10,10 +10,12 @@ stdenv.mkDerivation rec { }; buildInputs = [ gmp pkgconfig redland zlib librdf_raptor2 librdf_rasqal ]; - + preConfigure = '' - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_raptor2}/include/raptor2" - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_rasqal}/include/rasqal" + # Define _XOPEN_SOURCE to enable, e.g., getaddrinfo. + configureFlagsArray+=( + "CFLAGS=-D_XOPEN_SOURCE=600 -I${librdf_raptor2}/include/raptor2 -I${librdf_rasqal}/include/rasqal" + ) ''; meta = { |