1{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool
2, glib, vala, dee, gobjectIntrospection, libdbusmenu
3, gtk3, intltool, gnome-common, python3, icu }:
4
5stdenv.mkDerivation rec {
6 pname = "libunity";
7 version = "7.1.4";
8
9 name = "${pname}-${version}";
10
11 outputs = [ "out" "dev" ];
12
13 src = fetchurl {
14 url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}+15.10.20151002.orig.tar.gz";
15 sha256 = "1sf98qcjkxfibxk03firnc12dm6il8jzaq5763qam8ydg4li4gij";
16 };
17
18 nativeBuildInputs = [
19 autoconf
20 automake
21 gnome-common
22 gobjectIntrospection
23 intltool
24 libtool
25 pkgconfig
26 python3
27 vala
28 ];
29
30 buildInputs = [
31 glib
32 gtk3
33 ];
34
35 propagatedBuildInputs = [ dee libdbusmenu ];
36
37 preConfigure = "NOCONFIGURE=1 ./autogen.sh";
38
39 configureFlags = [
40 "--disable-static"
41 "--with-pygi-overrides-dir=$(out)/${python3.sitePackages}/gi/overrides"
42 ];
43
44 NIX_LDFLAGS = "-L${icu}/lib";
45
46 meta = with stdenv.lib; {
47 description = "A library for instrumenting and integrating with all aspects of the Unity shell";
48 homepage = https://launchpad.net/libunity;
49 license = licenses.lgpl3;
50 platforms = platforms.linux;
51 maintainers = with maintainers; [ worldofpeace ];
52 };
53}