1{ stdenv
2, fetchgit
3, pkgconfig
4, glib
5, vala
6, dee
7, gobject-introspection
8, libdbusmenu
9, gtk3
10, intltool
11, python3
12, autoreconfHook
13}:
14
15stdenv.mkDerivation {
16 pname = "libunity";
17 version = "unstable-2019-03-19";
18
19 outputs = [ "out" "dev" "py" ];
20
21 src = fetchgit {
22 url = "https://git.launchpad.net/ubuntu/+source/libunity";
23 rev = "import/7.1.4+19.04.20190319-0ubuntu1";
24 sha256 = "15b49v88v74q20a5c0lq867qnlz7fx20xifl6j8ha359r0zkfwzj";
25 };
26
27 nativeBuildInputs = [
28 autoreconfHook
29 gobject-introspection
30 intltool
31 pkgconfig
32 python3
33 vala
34 ];
35
36 buildInputs = [
37 glib
38 gtk3
39 ];
40
41 propagatedBuildInputs = [
42 dee
43 libdbusmenu
44 ];
45
46 patches = [
47 # See: https://gitlab.gnome.org/GNOME/vala/issues/766
48 ./fix-vala.patch
49 ];
50
51 preConfigure = ''
52 intltoolize
53 '';
54
55 configureFlags = [
56 "--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
57 ];
58
59 meta = with stdenv.lib; {
60 description = "A library for instrumenting and integrating with all aspects of the Unity shell";
61 homepage = "https://launchpad.net/libunity";
62 license = licenses.lgpl3;
63 platforms = platforms.linux;
64 maintainers = with maintainers; [ worldofpeace ];
65 };
66}