17 withPostgresql ? false,
24 stdenv.mkDerivation rec {
29 url = "http://download.librdf.org/source/redland-${version}.tar.gz";
30 sha256 = "de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681";
47 ++ lib.optional withMysql libmysqlclient
48 ++ lib.optional withSqlite sqlite
49 ++ lib.optional withPostgresql postgresql
50 ++ lib.optional withBdb db;
52 propagatedBuildInputs = [ librdf_rasqal ];
54 postInstall = "rm -rvf $out/share/gtk-doc";
58 ++ lib.optionals withBdb [
59 "--with-bdb-include=${db.dev}/include"
60 "--with-bdb-lib=${db.out}/lib"
63 # Fix broken DT_NEEDED in lib/redland/librdf_storage_sqlite.so.
64 NIX_CFLAGS_LINK = "-lraptor2";
66 doCheck = false; # fails 1 out of 17 tests with a segmentation fault
69 description = "C libraries that provide support for the Resource Description Framework (RDF)";
70 homepage = "https://librdf.org/";
71 platforms = platforms.unix;
72 license = licenses.asl20;