Adding 4store RDF storage/SparQL server

svn path=/nixpkgs/trunk/; revision=22434
This commit is contained in:
Michael Raskin
2010-06-30 21:51:48 +00:00
parent 6caaf0286d
commit 853212def0
5 changed files with 70 additions and 5 deletions
+44
View File
@@ -0,0 +1,44 @@
x@{builderDefsPackage
, librdf_raptor, librdf_rasqal,
glib, libxml2, pcre, avahi,
readline, ncurses, expat,
zlib, pkgconfig, which,
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 */
phaseNames = ["doFixConfigure" "doConfigure" "doMakeInstall"];
doFixConfigure = a.fullDepEntry ''
sed -e 's@#! */bin/bash@#! ${a.stdenv.shell}@' -i configure
find . -name Makefile -exec sed -e "s@/usr/local@$out@g" -i '{}' ';'
sed -e '/\/var\/lib\/4store/d' -i src/utilities/Makefile
sed -e 's@/var/lib/4store@${db_dir}@g' -i src/common/params.h src/utilities/*
'' ["minInit" "doUnpack"];
meta = {
description = "SparQL query server (RDF storage)";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
};
}) x
@@ -0,0 +1,9 @@
rec {
version="v1.0.3";
name="4store-v1.0.3";
hash="1d3n2xgqrq2kgigql3slxw1w2bml3b57xa7h6x9dbngxcz11xg22";
url="http://4store.org/download/4store-${version}.tar.gz";
advertisedUrl="http://4store.org/download/4store-v1.0.3.tar.gz";
}
@@ -0,0 +1,6 @@
{
downloadPage = "http://4store.org/download/";
baseName = "4store";
choiceCommand = "tail -n 1";
versionExtractorSedScript = "s@.*-(v[0-9.]+)[.].*@\\1@";
}