2021-04-13 22:50:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-03-21 13:26:50 +00:00
|
|
|
, fetchgit
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-03-21 13:26:50 +00:00
|
|
|
, glib
|
|
|
|
, vala
|
|
|
|
, dee
|
|
|
|
, gobject-introspection
|
|
|
|
, libdbusmenu
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, python3
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
2018-08-04 21:37:34 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-08-04 21:37:34 +00:00
|
|
|
pname = "libunity";
|
2021-04-13 22:50:52 +00:00
|
|
|
version = "unstable-2021-02-01";
|
2018-08-04 21:37:34 +00:00
|
|
|
|
2019-03-21 13:26:50 +00:00
|
|
|
outputs = [ "out" "dev" "py" ];
|
2018-08-04 21:37:34 +00:00
|
|
|
|
2021-04-13 22:50:52 +00:00
|
|
|
# Obtained from https://git.launchpad.net/ubuntu/+source/libunity/log/
|
2019-03-21 13:26:50 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.launchpad.net/ubuntu/+source/libunity";
|
2021-04-13 22:50:52 +00:00
|
|
|
rev = "import/7.1.4+19.04.20190319-5";
|
|
|
|
sha256 = "LHUs6kl1srS6Xektx+jmm4SXLR47VuQ9IhYbBxf2Wc8=";
|
2018-08-04 21:37:34 +00:00
|
|
|
};
|
|
|
|
|
2021-04-13 22:50:52 +00: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 21:37:34 +00:00
|
|
|
nativeBuildInputs = [
|
2019-03-21 13:26:50 +00:00
|
|
|
autoreconfHook
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2018-08-04 21:37:34 +00:00
|
|
|
intltool
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-08-04 21:37:34 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2019-03-21 13:26:50 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dee
|
|
|
|
libdbusmenu
|
|
|
|
];
|
2018-08-04 21:37:34 +00:00
|
|
|
|
2019-03-21 13:26:50 +00:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize
|
|
|
|
'';
|
2018-08-04 21:37:34 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2019-09-03 16:38:57 +00:00
|
|
|
"--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
|
2018-08-04 21:37:34 +00:00
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-08-04 21:37:34 +00:00
|
|
|
description = "A library for instrumenting and integrating with all aspects of the Unity shell";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://launchpad.net/libunity";
|
2018-08-04 21:37:34 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-05-05 09:25:45 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-08-04 21:37:34 +00:00
|
|
|
};
|
|
|
|
}
|