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 {
|
|
|
|
name = "redland-1.0.10";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sf/librdf/${name}.tar.gz";
|
|
|
|
sha256 = "05cq722qvw5sq08qbydzjv5snqk402cbdsy8s6qjzir7vq2hs1p3";
|
|
|
|
};
|
|
|
|
|
2010-02-11 15:31:49 +01:00
|
|
|
buildInputs = [ pkgconfig ];
|
2010-02-10 16:06:50 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2
|
|
|
|
librdf_raptor librdf_rasqal
|
|
|
|
];
|
|
|
|
|
2010-06-29 22:23:17 +02:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lrasqal -lraptor"
|
|
|
|
'';
|
|
|
|
|
2010-02-11 15:31:49 +01:00
|
|
|
configureFlags =
|
|
|
|
[ "--with-threads" ]
|
|
|
|
++ stdenv.lib.optional (bdb != null) "--with-bdb=${bdb}";
|
|
|
|
|
2010-04-03 11:54:22 +02:00
|
|
|
patchPhase ="sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl";
|
2010-02-10 16:06:50 +01:00
|
|
|
}
|