ps3-disc-dumper: 3.2.3 -> 4.2.5, .NET 6 -> 9 (#361506)
[NixPkgs.git] / pkgs / development / libraries / librdf / redland.nix
blobceac892f9934419c08508af5b7d6afdb53e35ff6
2   lib,
3   stdenv,
4   fetchurl,
5   pkg-config,
6   openssl,
7   libxslt,
8   perl,
9   curl,
10   pcre,
11   libxml2,
12   librdf_rasqal,
13   gmp,
14   libmysqlclient,
15   withMysql ? false,
16   postgresql,
17   withPostgresql ? false,
18   sqlite,
19   withSqlite ? true,
20   db,
21   withBdb ? false,
24 stdenv.mkDerivation rec {
25   pname = "redland";
26   version = "1.0.17";
28   src = fetchurl {
29     url = "http://download.librdf.org/source/redland-${version}.tar.gz";
30     sha256 = "de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681";
31   };
33   nativeBuildInputs = [
34     perl
35     pkg-config
36   ];
38   buildInputs =
39     [
40       openssl
41       libxslt
42       curl
43       pcre
44       libxml2
45       gmp
46     ]
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";
56   configureFlags =
57     [ "--with-threads" ]
58     ++ lib.optionals withBdb [
59       "--with-bdb-include=${db.dev}/include"
60       "--with-bdb-lib=${db.out}/lib"
61     ];
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
68   meta = with lib; {
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;
73   };