2016-05-08 18:29:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, librdf_raptor
|
|
|
|
, librdf_rasqal, glib, libxml2, pcre
|
|
|
|
, avahi, readline, ncurses, expat, autoreconfHook
|
|
|
|
, zlib, pkgconfig, which, perl, libuuid
|
|
|
|
, gmp, mpfr
|
|
|
|
, db_dir ? "/var/lib/4store" }:
|
2010-06-30 22:51:48 +01:00
|
|
|
|
|
|
|
|
2016-05-08 18:29:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "4store-${version}";
|
|
|
|
version = "1.1.6";
|
2010-06-30 22:51:48 +01:00
|
|
|
|
2016-05-08 18:29:40 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-11-15 22:46:26 +00:00
|
|
|
owner = "4store";
|
2016-05-08 18:29:40 +01:00
|
|
|
repo = "4store";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kzdfmwpzy64cgqlkcz5v4klwx99w0jk7afckyf7yqbqb4rydmpk";
|
|
|
|
};
|
|
|
|
|
2017-11-15 22:46:26 +00:00
|
|
|
patches = [ ./4store-1.1.6-glibc-2.26.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook perl pkgconfig which ];
|
|
|
|
|
2016-05-08 18:29:40 +01:00
|
|
|
buildInputs = [ librdf_raptor librdf_rasqal glib libxml2 pcre
|
2017-11-15 22:46:26 +00:00
|
|
|
avahi readline ncurses expat zlib libuuid gmp mpfr ];
|
2016-05-08 18:29:40 +01:00
|
|
|
|
|
|
|
# needed for ./autogen.sh
|
|
|
|
prePatch = ''
|
|
|
|
echo "${version}" > .version
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's@#! */bin/bash@#! ${stdenv.shell}@' -i configure
|
2010-06-30 22:51:48 +01:00
|
|
|
find . -name Makefile -exec sed -e "s@/usr/local@$out@g" -i '{}' ';'
|
2017-11-15 22:46:26 +00:00
|
|
|
|
2018-04-21 21:17:31 +01:00
|
|
|
rm src/utilities/4s-backend
|
2016-05-08 18:29:40 +01:00
|
|
|
sed -e 's@/var/lib/4store@${db_dir}@g' -i configure.ac src/utilities/*
|
2012-12-04 12:51:24 +00:00
|
|
|
sed -e '/FS_STORE_ROOT/d' -i src/utilities/Makefile*
|
2016-05-08 18:29:40 +01:00
|
|
|
'';
|
2010-07-01 06:05:47 +01:00
|
|
|
|
2017-11-15 22:46:26 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-05-08 18:29:40 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-06-30 22:51:48 +01:00
|
|
|
description = "SparQL query server (RDF storage)";
|
2017-11-15 22:46:26 +00:00
|
|
|
homepage = https://4store.danielknoell.de/;
|
2016-05-08 18:29:40 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2018-04-21 21:17:31 +01:00
|
|
|
broken = true; # since 2018-04-11
|
2010-06-30 22:51:48 +01:00
|
|
|
};
|
2016-05-08 18:29:40 +01:00
|
|
|
}
|