2021-04-14 00:50:52 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-03-21 14:26:50 +01:00
|
|
|
, fetchgit
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-03-21 14:26:50 +01:00
|
|
|
, glib
|
|
|
|
, vala
|
|
|
|
, dee
|
|
|
|
, gobject-introspection
|
|
|
|
, libdbusmenu
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, python3
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
2018-08-04 23:37:34 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2018-08-04 23:37:34 +02:00
|
|
|
pname = "libunity";
|
2021-04-14 00:50:52 +02:00
|
|
|
version = "unstable-2021-02-01";
|
2018-08-04 23:37:34 +02:00
|
|
|
|
2019-03-21 14:26:50 +01:00
|
|
|
outputs = [ "out" "dev" "py" ];
|
2018-08-04 23:37:34 +02:00
|
|
|
|
2021-04-14 00:50:52 +02:00
|
|
|
# Obtained from https://git.launchpad.net/ubuntu/+source/libunity/log/
|
2019-03-21 14:26:50 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.launchpad.net/ubuntu/+source/libunity";
|
2021-04-14 00:50:52 +02:00
|
|
|
rev = "import/7.1.4+19.04.20190319-5";
|
|
|
|
sha256 = "LHUs6kl1srS6Xektx+jmm4SXLR47VuQ9IhYbBxf2Wc8=";
|
2018-08-04 23:37:34 +02:00
|
|
|
};
|
|
|
|
|
2021-04-14 00:50:52 +02:00
|
|
|
patches = [
|
|
|
|
# Fix builf with latest Vala
|
|
|
|
# https://code.launchpad.net/~jtojnar/libunity/libunity
|
|
|
|
# Did not send upstream because Ubuntu is stuck on Vala 0.48.
|
|
|
|
./fix-vala.patch
|
|
|
|
];
|
|
|
|
|
2018-08-04 23:37:34 +02:00
|
|
|
nativeBuildInputs = [
|
2019-03-21 14:26:50 +01:00
|
|
|
autoreconfHook
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-08-04 23:37:34 +02:00
|
|
|
intltool
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2018-08-04 23:37:34 +02:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2019-03-21 14:26:50 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dee
|
|
|
|
libdbusmenu
|
|
|
|
];
|
2018-08-04 23:37:34 +02:00
|
|
|
|
2019-03-21 14:26:50 +01:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize
|
|
|
|
'';
|
2018-08-04 23:37:34 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
2019-09-03 18:38:57 +02:00
|
|
|
"--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
|
2018-08-04 23:37:34 +02:00
|
|
|
];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-08-04 23:37:34 +02:00
|
|
|
description = "A library for instrumenting and integrating with all aspects of the Unity shell";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://launchpad.net/libunity";
|
2018-08-04 23:37:34 +02:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-05-05 11:25:45 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-08-04 23:37:34 +02:00
|
|
|
};
|
|
|
|
}
|