2019-11-13 20:25:17 +01:00
|
|
|
{ stdenv
|
|
|
|
, pantheon
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, gnome3
|
|
|
|
, which
|
|
|
|
, fetchgit
|
|
|
|
, libgtop
|
|
|
|
, libwnck3
|
|
|
|
, glib
|
|
|
|
, vala
|
|
|
|
, pkgconfig
|
|
|
|
, libstartup_notification
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, xorgserver
|
|
|
|
, dbus
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-05-08 01:36:33 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bamf";
|
2018-11-09 21:07:00 +01:00
|
|
|
version = "0.5.4";
|
2018-05-08 01:36:33 +02:00
|
|
|
|
2018-07-07 18:50:00 +02:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2018-10-30 15:58:24 +01:00
|
|
|
src = fetchgit {
|
2019-11-13 20:23:13 +01:00
|
|
|
url = "https://git.launchpad.net/~unity-team/bamf";
|
2018-11-09 21:07:00 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1klvij1wyhdj5d8sr3b16pfixc1yk8ihglpjykg7zrr1f50jfgsz";
|
2018-05-08 01:36:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-11-13 20:25:17 +01:00
|
|
|
(python3.withPackages (ps: with ps; [ lxml ])) # Tests
|
2018-10-30 15:58:24 +01:00
|
|
|
autoconf
|
|
|
|
automake
|
2019-11-13 20:25:17 +01:00
|
|
|
dbus
|
2018-10-30 15:58:24 +01:00
|
|
|
docbook_xsl
|
|
|
|
gnome3.gnome-common
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-10-30 15:58:24 +01:00
|
|
|
gtk-doc
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
2018-07-07 18:50:00 +02:00
|
|
|
vala
|
2018-10-30 15:58:24 +01:00
|
|
|
which
|
2019-03-17 03:52:36 +01:00
|
|
|
wrapGAppsHook
|
2019-11-13 20:25:17 +01:00
|
|
|
xorgserver
|
2018-05-08 01:36:33 +02:00
|
|
|
];
|
|
|
|
|
2018-07-07 18:50:00 +02:00
|
|
|
buildInputs = [
|
2018-10-30 15:58:24 +01:00
|
|
|
glib
|
2018-07-07 18:50:00 +02:00
|
|
|
libgtop
|
|
|
|
libstartup_notification
|
2018-10-30 15:58:24 +01:00
|
|
|
libwnck3
|
2018-07-07 18:50:00 +02:00
|
|
|
];
|
2018-05-08 01:36:33 +02:00
|
|
|
|
2019-11-13 20:23:13 +01:00
|
|
|
patches = [
|
|
|
|
# Port tests and checks to python3 lxml.
|
|
|
|
./gtester2xunit-python3.patch
|
|
|
|
];
|
|
|
|
|
2018-07-07 18:50:00 +02:00
|
|
|
# Fix hard-coded path
|
|
|
|
# https://bugs.launchpad.net/bamf/+bug/1780557
|
2018-05-08 01:36:33 +02:00
|
|
|
postPatch = ''
|
2018-10-30 15:58:24 +01:00
|
|
|
substituteInPlace data/Makefile.am \
|
2018-07-07 18:50:00 +02:00
|
|
|
--replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user'
|
2018-05-08 01:36:33 +02:00
|
|
|
'';
|
|
|
|
|
2018-07-07 18:50:00 +02:00
|
|
|
configureFlags = [
|
2018-10-30 15:58:24 +01:00
|
|
|
"--enable-gtk-doc"
|
2019-11-13 20:25:17 +01:00
|
|
|
"--enable-headless-tests"
|
2018-07-07 18:50:00 +02:00
|
|
|
];
|
|
|
|
|
2018-05-08 01:36:33 +02:00
|
|
|
# fix paths
|
|
|
|
makeFlags = [
|
2019-09-03 18:38:57 +02:00
|
|
|
"INTROSPECTION_GIRDIR=${placeholder "dev"}/share/gir-1.0/"
|
|
|
|
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
|
2018-05-08 01:36:33 +02:00
|
|
|
];
|
|
|
|
|
2018-10-30 15:58:24 +01:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2018-07-07 18:50:00 +02:00
|
|
|
# TODO: Requires /etc/machine-id
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-14 22:43:59 +02:00
|
|
|
# glib-2.62 deprecations
|
2019-11-13 20:25:17 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-DGLIB_DISABLE_DEPRECATION_WARNINGS"
|
|
|
|
];
|
2018-05-08 01:36:33 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Application matching framework";
|
|
|
|
longDescription = ''
|
|
|
|
Removes the headache of applications matching
|
|
|
|
into a simple DBus daemon and c wrapper library.
|
|
|
|
'';
|
|
|
|
homepage = https://launchpad.net/bamf;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2019-11-13 20:25:17 +01:00
|
|
|
maintainers = with maintainers; [ davidak ] ++ pantheon.maintainers;
|
2018-05-08 01:36:33 +02:00
|
|
|
};
|
|
|
|
}
|