mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 07:04:28 +00:00
6ab109a673
Tracking issue: #31696
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{ 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" }:
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "4store-${version}";
|
|
version = "1.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "4store";
|
|
repo = "4store";
|
|
rev = "v${version}";
|
|
sha256 = "1kzdfmwpzy64cgqlkcz5v4klwx99w0jk7afckyf7yqbqb4rydmpk";
|
|
};
|
|
|
|
patches = [ ./4store-1.1.6-glibc-2.26.patch ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook perl pkgconfig which ];
|
|
|
|
buildInputs = [ librdf_raptor librdf_rasqal glib libxml2 pcre
|
|
avahi readline ncurses expat zlib libuuid gmp mpfr ];
|
|
|
|
# needed for ./autogen.sh
|
|
prePatch = ''
|
|
echo "${version}" > .version
|
|
'';
|
|
|
|
preConfigure = ''
|
|
sed -e 's@#! */bin/bash@#! ${stdenv.shell}@' -i configure
|
|
find . -name Makefile -exec sed -e "s@/usr/local@$out@g" -i '{}' ';'
|
|
|
|
rm src/utilities/4s-backend
|
|
sed -e 's@/var/lib/4store@${db_dir}@g' -i configure.ac src/utilities/*
|
|
sed -e '/FS_STORE_ROOT/d' -i src/utilities/Makefile*
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "SparQL query server (RDF storage)";
|
|
homepage = https://4store.danielknoell.de/;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|