2022-02-27 02:55:42 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, autoreconfHook
|
|
|
|
, gitUpdater
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2019-11-13 19:25:17 +00:00
|
|
|
, which
|
|
|
|
, fetchgit
|
|
|
|
, libgtop
|
2021-06-23 18:22:04 +00:00
|
|
|
, libwnck
|
2019-11-13 19:25:17 +00:00
|
|
|
, glib
|
|
|
|
, vala
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-11-13 19:25:17 +00:00
|
|
|
, libstartup_notification
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, xorgserver
|
|
|
|
, dbus
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-05-07 23:36:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "bamf";
|
2022-02-27 02:55:42 +00:00
|
|
|
version = "0.5.6";
|
2018-05-07 23:36:33 +00:00
|
|
|
|
2018-07-07 16:50:00 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2018-10-30 14:58:24 +00:00
|
|
|
src = fetchgit {
|
2019-11-13 19:23:13 +00:00
|
|
|
url = "https://git.launchpad.net/~unity-team/bamf";
|
2022-02-27 02:55:42 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "7U+2GcuDjPU8quZjkd8bLADGlG++tl6wSo0mUQkjAXQ=";
|
2018-05-07 23:36:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-11-13 19:25:17 +00:00
|
|
|
(python3.withPackages (ps: with ps; [ lxml ])) # Tests
|
2022-02-27 02:55:42 +00:00
|
|
|
autoreconfHook
|
2019-11-13 19:25:17 +00:00
|
|
|
dbus
|
2018-10-30 14:58:24 +00:00
|
|
|
docbook_xsl
|
2021-05-07 21:18:14 +00:00
|
|
|
gnome.gnome-common
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2018-10-30 14:58:24 +00:00
|
|
|
gtk-doc
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-07-07 16:50:00 +00:00
|
|
|
vala
|
2018-10-30 14:58:24 +00:00
|
|
|
which
|
2019-03-17 02:52:36 +00:00
|
|
|
wrapGAppsHook
|
2019-11-13 19:25:17 +00:00
|
|
|
xorgserver
|
2018-05-07 23:36:33 +00:00
|
|
|
];
|
|
|
|
|
2018-07-07 16:50:00 +00:00
|
|
|
buildInputs = [
|
2018-10-30 14:58:24 +00:00
|
|
|
glib
|
2018-07-07 16:50:00 +00:00
|
|
|
libgtop
|
|
|
|
libstartup_notification
|
2021-06-23 18:22:04 +00:00
|
|
|
libwnck
|
2018-07-07 16:50:00 +00:00
|
|
|
];
|
2018-05-07 23:36:33 +00:00
|
|
|
|
2018-07-07 16:50:00 +00:00
|
|
|
# Fix hard-coded path
|
|
|
|
# https://bugs.launchpad.net/bamf/+bug/1780557
|
2018-05-07 23:36:33 +00:00
|
|
|
postPatch = ''
|
2018-10-30 14:58:24 +00:00
|
|
|
substituteInPlace data/Makefile.am \
|
2018-07-07 16:50:00 +00:00
|
|
|
--replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user'
|
2018-05-07 23:36:33 +00:00
|
|
|
'';
|
|
|
|
|
2018-07-07 16:50:00 +00:00
|
|
|
configureFlags = [
|
2018-10-30 14:58:24 +00:00
|
|
|
"--enable-gtk-doc"
|
2019-11-13 19:25:17 +00:00
|
|
|
"--enable-headless-tests"
|
2018-07-07 16:50:00 +00:00
|
|
|
];
|
|
|
|
|
2022-02-27 02:55:42 +00:00
|
|
|
# Fix paths
|
2018-05-07 23:36:33 +00:00
|
|
|
makeFlags = [
|
2019-09-03 16:38:57 +00:00
|
|
|
"INTROSPECTION_GIRDIR=${placeholder "dev"}/share/gir-1.0/"
|
|
|
|
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
|
2018-05-07 23:36:33 +00:00
|
|
|
];
|
|
|
|
|
2018-07-07 16:50:00 +00:00
|
|
|
# TODO: Requires /etc/machine-id
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-27 02:55:42 +00:00
|
|
|
# Ignore deprecation errors
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
|
2018-05-07 23:36:33 +00:00
|
|
|
|
2022-02-27 02:55:42 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
inherit pname version;
|
|
|
|
ignoredVersions = ".ubuntu.*";
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-05-07 23:36:33 +00:00
|
|
|
description = "Application matching framework";
|
|
|
|
longDescription = ''
|
|
|
|
Removes the headache of applications matching
|
|
|
|
into a simple DBus daemon and c wrapper library.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://launchpad.net/bamf";
|
2018-05-07 23:36:33 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 15:00:51 +00:00
|
|
|
maintainers = with maintainers; [ davidak ] ++ teams.pantheon.members;
|
2018-05-07 23:36:33 +00:00
|
|
|
};
|
|
|
|
}
|