2010-06-30 23:51:48 +02:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, librdf_raptor, librdf_rasqal,
|
|
|
|
glib, libxml2, pcre, avahi,
|
|
|
|
readline, ncurses, expat,
|
|
|
|
zlib, pkgconfig, which,
|
2010-07-01 07:05:47 +02:00
|
|
|
perl,
|
2010-06-30 23:51:48 +02:00
|
|
|
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 */
|
2010-07-01 07:05:47 +02:00
|
|
|
phaseNames = ["doFixConfigure" "doConfigure" "doMakeInstall"
|
|
|
|
"fixInterpreter"];
|
2010-06-30 23:51:48 +02:00
|
|
|
|
|
|
|
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"];
|
2010-07-01 07:05:47 +02:00
|
|
|
|
|
|
|
fixInterpreter = (a.doPatchShebangs "$out/bin");
|
2010-06-30 23:51:48 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SparQL query server (RDF storage)";
|
2010-09-27 13:19:31 +02:00
|
|
|
homepage = http://4store.org/;
|
2010-06-30 23:51:48 +02:00
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|