2009-04-21 16:18:09 -07:00
|
|
|
args: with args;
|
|
|
|
|
2009-11-18 03:46:35 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "redland-1.0.8";
|
2007-10-01 08:14:50 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-02-10 09:42:11 -08:00
|
|
|
url = "mirror://sf/librdf/${name}.tar.gz";
|
2009-09-22 16:07:35 -07:00
|
|
|
sha256 = "8a77fcfd20fea2c6e53761d6dcbbee3fdb35e5308de36c1daa0d2014e5a96afe";
|
2007-10-01 08:14:50 -07:00
|
|
|
};
|
2009-04-21 16:18:09 -07:00
|
|
|
|
2009-09-22 16:07:35 -07:00
|
|
|
buildInputs = [pkgconfig librdf_raptor];
|
2009-04-21 16:18:09 -07:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2
|
2009-09-22 16:07:35 -07:00
|
|
|
librdf_rasqal librdf_raptor
|
2009-04-21 16:18:09 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = "--with-threads --with-bdb=${bdb}";
|
|
|
|
|
2009-11-05 00:19:35 -08:00
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl
|
|
|
|
|
|
|
|
# Redland 1.0.9 uses an internal pre-processor symbol SQLITE_API
|
|
|
|
# that collides with a symbol of the same name in sqlite 3.6.19.
|
|
|
|
# This is a quick fix for the problem. A real solution needs to be
|
|
|
|
# implemented upstream, though.
|
|
|
|
find . -type f -exec sed -i -e 's/SQLITE_API/REDLAND_SQLITE_API/g' {} \;
|
|
|
|
'';
|
2007-10-01 08:14:50 -07:00
|
|
|
}
|