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