@@ -1,27 +1,33 @@
1−{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool
2−, glib, vala, dee, gobject-introspection, libdbusmenu
3−, gtk3, intltool, gnome-common, python3, icu }:
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+}:
414
515stdenv.mkDerivation rec {
616 pname = "libunity";
7− version = "7.1.4";
17+ version = "unstable-2019-03-19";
818
9− name = "${pname}-${version}";
19+ outputs = [ "out" "dev" "py" ];
1020
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";
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";
1625 };
1726
1827 nativeBuildInputs = [
19− autoconf
20− automake
21− gnome-common
28+ autoreconfHook
2229 gobject-introspection
2330 intltool
24− libtool
2531 pkgconfig
2632 python3
2733 vala
@@ -32,17 +38,20 @@ stdenv.mkDerivation rec {
3238 gtk3
3339 ];
3440
35− propagatedBuildInputs = [ dee libdbusmenu ];
41+ propagatedBuildInputs = [
42+ dee
43+ libdbusmenu
44+ ];
3645
37− preConfigure = "NOCONFIGURE=1 ./autogen.sh";
46+ preConfigure = ''
47+ intltoolize
48+ '';
3849
3950 configureFlags = [
4051 "--disable-static"
41− "--with-pygi-overrides-dir=$(out)/${python3.sitePackages}/gi/overrides"
52+ "--with-pygi-overrides-dir=${placeholder ''py''}/${python3.sitePackages}/gi/overrides"
4253 ];
4354
44− NIX_LDFLAGS = "-L${icu}/lib";
45−
4655 meta = with stdenv.lib; {
4756 description = "A library for instrumenting and integrating with all aspects of the Unity shell";
4857 homepage = https://launchpad.net/libunity;