2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, redland, pkg-config, gmp, zlib, librdf_raptor2
|
2011-08-17 22:22:06 +00:00
|
|
|
, librdf_rasqal }:
|
2010-06-29 22:18:49 +00:00
|
|
|
|
2011-05-04 12:43:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-07-25 21:53:02 +00:00
|
|
|
pname = "redstore";
|
|
|
|
version = "0.5.4";
|
2010-06-29 22:18:49 +00:00
|
|
|
|
2011-05-04 12:43:31 +00:00
|
|
|
src = fetchurl {
|
2021-07-25 21:53:02 +00:00
|
|
|
url = "https://www.aelius.com/njh/redstore/redstore-${version}.tar.gz";
|
2016-08-17 20:33:01 +00:00
|
|
|
sha256 = "0hc1fjfbfvggl72zqx27v4wy84f5m7bp4dnwd8g41aw8lgynbgaq";
|
2011-05-04 12:43:31 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ gmp redland zlib librdf_raptor2 librdf_rasqal ];
|
2016-08-17 20:31:07 +00:00
|
|
|
|
2011-08-17 22:22:06 +00:00
|
|
|
preConfigure = ''
|
2016-08-17 20:31:07 +00: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 22:22:06 +00:00
|
|
|
'';
|
|
|
|
|
2010-06-29 22:18:49 +00:00
|
|
|
meta = {
|
|
|
|
description = "An HTTP interface to Redland RDF store";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.aelius.com/njh/redstore/";
|
2021-01-15 07:07:56 +00:00
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
|
|
platforms = with lib.platforms;
|
2010-06-29 22:18:49 +00:00
|
|
|
linux ++ freebsd ++ gnu;
|
2021-01-15 07:07:56 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2010-06-29 22:18:49 +00:00
|
|
|
};
|
2011-05-04 12:43:31 +00:00
|
|
|
}
|