4store: 1.1.5 -> 1.1.6 (convert from builderDefsPackage)
This commit is contained in:
parent
3bd3957a50
commit
0adf2b25a1
@ -1,48 +1,44 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchFromGitHub, librdf_raptor
|
||||||
, librdf_raptor, librdf_rasqal,
|
, librdf_rasqal, glib, libxml2, pcre
|
||||||
glib, libxml2, pcre, avahi,
|
, avahi, readline, ncurses, expat, autoreconfHook
|
||||||
readline, ncurses, expat,
|
, zlib, pkgconfig, which, perl, libuuid
|
||||||
zlib, pkgconfig, which,
|
, gmp, mpfr
|
||||||
perl, libuuid, gmp, mpfr
|
, db_dir ? "/var/lib/4store" }:
|
||||||
, db_dir ? "/var/lib/4store"
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
s = import ./src-for-default.nix;
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
["db_dir"];
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchUrlFromSrcInfo s;
|
|
||||||
|
|
||||||
inherit (s) name;
|
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
stdenv.mkDerivation rec {
|
||||||
phaseNames = ["doFixConfigure" "doConfigure" "doMakeInstall"
|
name = "4store-${version}";
|
||||||
"fixInterpreter"];
|
version = "1.1.6";
|
||||||
|
|
||||||
doFixConfigure = a.fullDepEntry ''
|
src = fetchFromGitHub {
|
||||||
sed -e 's@#! */bin/bash@#! ${a.stdenv.shell}@' -i configure
|
owner = "garlik";
|
||||||
|
repo = "4store";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1kzdfmwpzy64cgqlkcz5v4klwx99w0jk7afckyf7yqbqb4rydmpk";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ librdf_raptor librdf_rasqal glib libxml2 pcre
|
||||||
|
avahi readline ncurses expat zlib pkgconfig which perl libuuid
|
||||||
|
gmp mpfr autoreconfHook ];
|
||||||
|
|
||||||
|
# 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 '{}' ';'
|
find . -name Makefile -exec sed -e "s@/usr/local@$out@g" -i '{}' ';'
|
||||||
|
|
||||||
sed -e 's@/var/lib/4store@${db_dir}@g' -i src/common/params.h src/utilities/*
|
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*
|
sed -e '/FS_STORE_ROOT/d' -i src/utilities/Makefile*
|
||||||
'' ["minInit" "doUnpack"];
|
'';
|
||||||
|
|
||||||
fixInterpreter = (a.doPatchShebangs "$out/bin");
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "SparQL query server (RDF storage)";
|
description = "SparQL query server (RDF storage)";
|
||||||
homepage = http://4store.org/;
|
homepage = http://4store.org/;
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers; [ raskin ];
|
||||||
[
|
platforms = platforms.linux;
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user