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

105 lines
2.0 KiB
Nix
Raw Normal View History

2019-11-13 19:25:17 +00:00
{ stdenv
, pantheon
, autoconf
, automake
, libtool
, gnome3
, which
, fetchgit
, libgtop
, libwnck3
, 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-08 00:36:33 +01:00
stdenv.mkDerivation rec {
pname = "bamf";
2018-11-09 20:07:00 +00:00
version = "0.5.4";
2018-05-08 00:36:33 +01:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchgit {
2019-11-13 19:23:13 +00:00
url = "https://git.launchpad.net/~unity-team/bamf";
2018-11-09 20:07:00 +00:00
rev = version;
sha256 = "1klvij1wyhdj5d8sr3b16pfixc1yk8ihglpjykg7zrr1f50jfgsz";
2018-05-08 00:36:33 +01:00
};
nativeBuildInputs = [
2019-11-13 19:25:17 +00:00
(python3.withPackages (ps: with ps; [ lxml ])) # Tests
autoconf
automake
2019-11-13 19:25:17 +00:00
dbus
docbook_xsl
gnome3.gnome-common
gobject-introspection
gtk-doc
libtool
pkg-config
vala
which
2019-03-17 02:52:36 +00:00
wrapGAppsHook
2019-11-13 19:25:17 +00:00
xorgserver
2018-05-08 00:36:33 +01:00
];
buildInputs = [
glib
libgtop
libstartup_notification
libwnck3
];
2018-05-08 00:36:33 +01:00
2019-11-13 19:23:13 +00:00
patches = [
# Port tests and checks to python3 lxml.
./gtester2xunit-python3.patch
];
# Fix hard-coded path
# https://bugs.launchpad.net/bamf/+bug/1780557
2018-05-08 00:36:33 +01:00
postPatch = ''
substituteInPlace data/Makefile.am \
--replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user'
2018-05-08 00:36:33 +01:00
'';
configureFlags = [
"--enable-gtk-doc"
2019-11-13 19:25:17 +00:00
"--enable-headless-tests"
];
2018-05-08 00:36:33 +01:00
# fix paths
makeFlags = [
"INTROSPECTION_GIRDIR=${placeholder "dev"}/share/gir-1.0/"
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
2018-05-08 00:36:33 +01:00
];
preConfigure = ''
./autogen.sh
'';
# TODO: Requires /etc/machine-id
doCheck = false;
2019-09-14 21:43:59 +01:00
# glib-2.62 deprecations
2019-10-30 01:29:30 +00:00
NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
2018-05-08 00:36:33 +01: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";
2018-05-08 00:36:33 +01:00
license = licenses.lgpl3;
platforms = platforms.linux;
2019-11-13 19:25:17 +00:00
maintainers = with maintainers; [ davidak ] ++ pantheon.maintainers;
2018-05-08 00:36:33 +01:00
};
}