Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / dee / default.nix
blob4a2199f450e63aaae5403fe2ea2276e278f13c12
1 { lib, stdenv
2 , fetchgit
3 , fetchpatch
4 , pkg-config
5 , glib
6 , icu
7 , gobject-introspection
8 , dbus-glib
9 , vala
10 , python3
11 , autoreconfHook
14 stdenv.mkDerivation rec {
15   pname = "dee";
16   version = "unstable-2017-06-16";
18   outputs = [ "out" "dev" "py" ];
20   src = fetchgit {
21     url = "https://git.launchpad.net/ubuntu/+source/dee";
22     rev = "import/1.2.7+17.10.20170616-4ubuntu3";
23     sha256 = "09blrdj7229vscp4mkg0fabmcvc6jdpamvblrq86rbky7j2nnwlk";
24   };
26   patches = [
27     "${src}/debian/patches/gtkdocize.patch"
28     "${src}/debian/patches/strict-prototype.patch"
29     "${src}/debian/patches/vapi-skip-properties.patch"
30     ./0001-Fix-build-with-Vala-0.54.patch
32     # Fixes glib 2.62 deprecations
33     (fetchpatch {
34       name = "dee-1.2.7-deprecated-g_type_class_add_private.patch";
35       url = "https://src.fedoraproject.org/rpms/dee/raw/1a9a4ce3377074fabfca653ffe0287cd73aef82f/f/dee-1.2.7-deprecated-g_type_class_add_private.patch";
36       sha256 = "13nyprq7bb7lnzkcb7frcpzidbl836ycn5bvmwa2k0nhmj6ycbx5";
37     })
38   ];
40   nativeBuildInputs = [
41     pkg-config
42     vala
43     autoreconfHook
44     gobject-introspection
45     python3
46   ];
48   buildInputs = [
49     glib
50     icu
51     dbus-glib
52   ];
54   configureFlags = [
55     "--disable-gtk-doc"
56     "--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
57   ];
59   # Compilation fails after a change in glib where
60   # g_string_free now returns a value
61   env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
63   enableParallelBuilding = true;
65   meta = with lib; {
66     description = "A library that uses DBus to provide objects allowing you to create Model-View-Controller type programs across DBus";
67     homepage = "https://launchpad.net/dee";
68     license = licenses.lgpl3;
69     platforms = platforms.linux;
70     maintainers = with maintainers; [ abbradar ];
71   };