nixpkgs/pkgs/development/libraries/bamf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
1.9 KiB
Nix
Raw Normal View History

2022-02-27 02:55:42 +00:00
{ stdenv
, lib
, autoreconfHook
, gitUpdater
, 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
, 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 {
pname = "bamf";
2022-02-27 02:55:42 +00:00
version = "0.5.6";
2018-05-07 23:36:33 +00:00
outputs = [ "out" "dev" "devdoc" ];
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
docbook_xsl
gnome.gnome-common
gobject-introspection
gtk-doc
pkg-config
vala
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
];
buildInputs = [
glib
libgtop
libstartup_notification
2021-06-23 18:22:04 +00:00
libwnck
];
2018-05-07 23:36:33 +00:00
# Fix hard-coded path
# https://bugs.launchpad.net/bamf/+bug/1780557
2018-05-07 23:36:33 +00:00
postPatch = ''
substituteInPlace data/Makefile.am \
--replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user'
2018-05-07 23:36:33 +00:00
'';
configureFlags = [
"--enable-gtk-doc"
2019-11-13 19:25:17 +00:00
"--enable-headless-tests"
];
2022-02-27 02:55:42 +00:00
# Fix paths
2018-05-07 23:36:33 +00:00
makeFlags = [
"INTROSPECTION_GIRDIR=${placeholder "dev"}/share/gir-1.0/"
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
2018-05-07 23:36:33 +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.*";
};
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.
'';
homepage = "https://launchpad.net/bamf";
2018-05-07 23:36:33 +00:00
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ davidak ] ++ teams.pantheon.members;
2018-05-07 23:36:33 +00:00
};
}