2011-08-17 23:22:06 +01:00
|
|
|
{ stdenv, fetchurl, redland, pkgconfig, gmp, zlib, librdf_raptor2
|
|
|
|
, librdf_rasqal }:
|
2010-06-29 23:18:49 +01:00
|
|
|
|
2011-05-04 13:43:31 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-08-17 21:33:01 +01:00
|
|
|
name = "redstore-0.5.4";
|
2010-06-29 23:18:49 +01:00
|
|
|
|
2011-05-04 13:43:31 +01:00
|
|
|
src = fetchurl {
|
2011-08-17 23:22:06 +01:00
|
|
|
url = "http://www.aelius.com/njh/redstore/${name}.tar.gz";
|
2016-08-17 21:33:01 +01:00
|
|
|
sha256 = "0hc1fjfbfvggl72zqx27v4wy84f5m7bp4dnwd8g41aw8lgynbgaq";
|
2011-05-04 13:43:31 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gmp redland zlib librdf_raptor2 librdf_rasqal ];
|
2016-08-17 21:31:07 +01:00
|
|
|
|
2011-08-17 23:22:06 +01:00
|
|
|
preConfigure = ''
|
2016-08-17 21:31:07 +01:00
|
|
|
# Define _XOPEN_SOURCE to enable, e.g., getaddrinfo.
|
|
|
|
configureFlagsArray+=(
|
|
|
|
"CFLAGS=-D_XOPEN_SOURCE=600 -I${librdf_raptor2}/include/raptor2 -I${librdf_rasqal}/include/rasqal"
|
|
|
|
)
|
2011-08-17 23:22:06 +01:00
|
|
|
'';
|
|
|
|
|
2010-06-29 23:18:49 +01:00
|
|
|
meta = {
|
|
|
|
description = "An HTTP interface to Redland RDF store";
|
2016-08-17 21:40:49 +01:00
|
|
|
homepage = https://www.aelius.com/njh/redstore/;
|
2011-05-04 13:43:31 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = with stdenv.lib.platforms;
|
2010-06-29 23:18:49 +01:00
|
|
|
linux ++ freebsd ++ gnu;
|
2016-08-17 21:40:49 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2010-06-29 23:18:49 +01:00
|
|
|
};
|
2011-05-04 13:43:31 +01:00
|
|
|
}
|