2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, redland, pkg-config, gmp, zlib, librdf_raptor2
|
2020-04-24 23:36:52 +00:00
|
|
|
, librdf_rasqal }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "redstore";
|
|
|
|
version = "0.5.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "https://www.aelius.com/njh/redstore/redstore-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0hc1fjfbfvggl72zqx27v4wy84f5m7bp4dnwd8g41aw8lgynbgaq";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ gmp redland zlib librdf_raptor2 librdf_rasqal ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# 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 = {
|
|
|
|
description = "An HTTP interface to Redland RDF store";
|
|
|
|
homepage = "https://www.aelius.com/njh/redstore/";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
|
|
platforms = with lib.platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
linux ++ freebsd ++ gnu;
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|