1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/development/libraries/redland/1.0.10.nix
Michael Raskin 4a1b8d558c Putting back accidentally removed export of LFDLAGS
svn path=/nixpkgs/trunk/; revision=22429
2010-06-30 04:39:02 +00:00

31 lines
796 B
Nix

{ stdenv, fetchurl, pkgconfig, openssl, libxslt, perl
, curl, pcre, libxml2, librdf_rasqal, librdf_raptor
, mysql ? null, postgresql ? null, sqlite ? null, bdb ? null
}:
stdenv.mkDerivation rec {
name = "redland-1.0.10";
src = fetchurl {
url = "mirror://sf/librdf/${name}.tar.gz";
sha256 = "05cq722qvw5sq08qbydzjv5snqk402cbdsy8s6qjzir7vq2hs1p3";
};
buildInputs = [ pkgconfig ];
propagatedBuildInputs = [
bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2
librdf_raptor librdf_rasqal
];
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lrasqal -lraptor"
'';
configureFlags =
[ "--with-threads" ]
++ stdenv.lib.optional (bdb != null) "--with-bdb=${bdb}";
patchPhase ="sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl";
}