1{
2 lib,
3 stdenv,
4 fetchgit,
5 pkg-config,
6 glib,
7 vala,
8 dee,
9 gobject-introspection,
10 libdbusmenu,
11 gtk3,
12 intltool,
13 python3,
14 autoreconfHook,
15}:
16
17stdenv.mkDerivation {
18 pname = "libunity";
19 version = "unstable-2021-02-01";
20
21 outputs = [
22 "out"
23 "dev"
24 "py"
25 ];
26
27 # Obtained from https://git.launchpad.net/ubuntu/+source/libunity/log/
28 src = fetchgit {
29 url = "https://git.launchpad.net/ubuntu/+source/libunity";
30 rev = "import/7.1.4+19.04.20190319-5";
31 sha256 = "LHUs6kl1srS6Xektx+jmm4SXLR47VuQ9IhYbBxf2Wc8=";
32 };
33
34 patches = [
35 # Fix builf with latest Vala
36 # https://code.launchpad.net/~jtojnar/libunity/libunity
37 # Did not send upstream because Ubuntu is stuck on Vala 0.48.
38 ./fix-vala.patch
39 ];
40
41 nativeBuildInputs = [
42 autoreconfHook
43 gobject-introspection
44 intltool
45 pkg-config
46 python3
47 vala
48 ];
49
50 buildInputs = [
51 glib
52 gtk3
53 ];
54
55 propagatedBuildInputs = [
56 dee
57 libdbusmenu
58 ];
59
60 preConfigure = ''
61 intltoolize
62 '';
63
64 configureFlags = [
65 "--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
66 ];
67
68 meta = with lib; {
69 description = "Library for instrumenting and integrating with all aspects of the Unity shell";
70 homepage = "https://launchpad.net/libunity";
71 license = licenses.lgpl3;
72 platforms = platforms.linux;
73 maintainers = [ ];
74 };
75}