summary refs log tree commit diff
path: root/pkgs/servers/http/redstore/default.nix
blob: c47449ce6bd74c6e30a8cbd13028646249258086 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, redland, pkgconfig, gmp, zlib, librdf_raptor2
  , librdf_rasqal }:

stdenv.mkDerivation rec {
  name = "redstore-0.5.2";

  src = fetchurl {
    url = "http://www.aelius.com/njh/redstore/${name}.tar.gz";
    sha256 = "fdbe499a7bbe8c8a756ecb738b83ea375e96af16a1d74245b75600d4d40adb7d";
  };

  buildInputs = [ gmp pkgconfig redland zlib librdf_raptor2 librdf_rasqal ];
     
  preConfigure = ''
    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_raptor2}/include/raptor2"
    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_rasqal}/include/rasqal"
  '';

  meta = {
    description = "An HTTP interface to Redland RDF store";
    maintainers = [ stdenv.lib.maintainers.raskin ];
    platforms = with stdenv.lib.platforms;
      linux ++ freebsd ++ gnu;
  };
}