2010-02-11 15:31:49 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openssl, libxslt, perl
|
|
|
|
, curl, pcre, libxml2, librdf_rasqal, librdf_raptor
|
|
|
|
, mysql ? null, postgresql ? null, sqlite ? null, bdb ? null
|
|
|
|
}:
|
2010-02-10 16:06:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-07-11 12:49:21 +02:00
|
|
|
name = "redland-1.0.10";
|
2010-02-10 16:06:50 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-07-11 12:49:21 +02:00
|
|
|
url = "http://download.librdf.org/source/${name}.tar.gz";
|
2010-02-10 16:06:50 +01:00
|
|
|
sha256 = "05cq722qvw5sq08qbydzjv5snqk402cbdsy8s6qjzir7vq2hs1p3";
|
|
|
|
};
|
|
|
|
|
2011-07-11 12:49:21 +02:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig bdb openssl libxslt perl mysql postgresql sqlite curl
|
|
|
|
pcre libxml2
|
|
|
|
];
|
2010-02-10 16:06:50 +01:00
|
|
|
|
2011-07-11 12:49:21 +02:00
|
|
|
propagatedBuildInputs = [ librdf_raptor librdf_rasqal ];
|
2010-06-30 06:39:02 +02:00
|
|
|
|
2011-07-11 12:49:21 +02:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lrasqal -lraptor"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = "rm -rf $out/share/gtk-doc";
|
|
|
|
|
2010-02-11 15:31:49 +01:00
|
|
|
configureFlags =
|
|
|
|
[ "--with-threads" ]
|
|
|
|
++ stdenv.lib.optional (bdb != null) "--with-bdb=${bdb}";
|
2011-07-11 12:49:21 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://librdf.org/;
|
|
|
|
};
|
2010-02-10 16:06:50 +01:00
|
|
|
}
|