Adding Redstore HTTP RDF/SPARQL server

svn path=/nixpkgs/trunk/; revision=22428
This commit is contained in:
Michael Raskin
2010-06-29 22:18:49 +00:00
parent f366f3020c
commit 14eea491b8
8 changed files with 62 additions and 11 deletions
+32
View File
@@ -0,0 +1,32 @@
x@{builderDefsPackage
, redland, pkgconfig, gmp
, ...}:
builderDefsPackage
(a :
let
s = import ./src-for-default.nix;
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
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 = ["doConfigure" "doMakeInstall"];
meta = {
description = "An HTTP interface to Redland RDF store";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux ++ freebsd ++ gnu;
};
}) x
@@ -0,0 +1,9 @@
rec {
version="0.4";
name="redstore-0.4";
hash="1fs54v0d0kkqaz9ajacabb8wifrglvg6kkhd5b0mxmnng352wpp7";
url="http://redstore.googlecode.com/files/redstore-${version}.tar.gz";
advertisedUrl="http://redstore.googlecode.com/files/redstore-0.4.tar.gz";
}
@@ -0,0 +1,6 @@
{
downloadPage = "http://code.google.com/p/redstore/downloads/list";
baseName = "redstore";
choiceCommand = '' head -n 1 |
sed -re "s@[&].*@@; s@.*[?]name=(.*)@http://$(sed -re "s@.*/p/([^/]+)/.*@\\1@" <<< "$(getAttr downloadPage)").googlecode.com/files/\\1@" '';
}