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