2018-10-30 14:58:24 +00:00
|
|
|
{ stdenv, autoconf, automake, libtool, gnome3, which, fetchgit, libgtop, libwnck3, glib, vala, pkgconfig
|
|
|
|
, libstartup_notification, gobjectIntrospection, gtk-doc, docbook_xsl
|
2018-07-07 17:50:00 +01:00
|
|
|
, xorgserver, dbus, python2 }:
|
2018-05-08 00:36:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-09 20:07:00 +00:00
|
|
|
name = "bamf-${version}";
|
|
|
|
version = "0.5.4";
|
2018-05-08 00:36:33 +01:00
|
|
|
|
2018-07-07 17:50:00 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2018-10-30 14:58:24 +00:00
|
|
|
src = fetchgit {
|
|
|
|
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 = [
|
2018-10-30 14:58:24 +00:00
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
docbook_xsl
|
|
|
|
gnome3.gnome-common
|
2018-05-08 00:36:33 +01:00
|
|
|
gobjectIntrospection
|
2018-10-30 14:58:24 +00:00
|
|
|
gtk-doc
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
2018-07-07 17:50:00 +01:00
|
|
|
vala
|
2018-10-30 14:58:24 +00:00
|
|
|
which
|
2018-07-07 17:50:00 +01:00
|
|
|
# Tests
|
2018-10-30 14:58:24 +00:00
|
|
|
python2
|
|
|
|
python2.pkgs.libxslt
|
|
|
|
python2.pkgs.libxml2
|
2018-07-07 17:50:00 +01:00
|
|
|
dbus
|
2018-10-30 14:58:24 +00:00
|
|
|
xorgserver
|
2018-05-08 00:36:33 +01:00
|
|
|
];
|
|
|
|
|
2018-07-07 17:50:00 +01:00
|
|
|
buildInputs = [
|
2018-10-30 14:58:24 +00:00
|
|
|
glib
|
2018-07-07 17:50:00 +01:00
|
|
|
libgtop
|
|
|
|
libstartup_notification
|
2018-10-30 14:58:24 +00:00
|
|
|
libwnck3
|
2018-07-07 17:50:00 +01:00
|
|
|
];
|
2018-05-08 00:36:33 +01:00
|
|
|
|
2018-07-07 17:50:00 +01:00
|
|
|
# Fix hard-coded path
|
|
|
|
# https://bugs.launchpad.net/bamf/+bug/1780557
|
2018-05-08 00:36:33 +01:00
|
|
|
postPatch = ''
|
2018-10-30 14:58:24 +00:00
|
|
|
substituteInPlace data/Makefile.am \
|
2018-07-07 17:50:00 +01:00
|
|
|
--replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user'
|
2018-05-08 00:36:33 +01:00
|
|
|
'';
|
|
|
|
|
2018-07-07 17:50:00 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-headless-tests"
|
2018-10-30 14:58:24 +00:00
|
|
|
"--enable-gtk-doc"
|
2018-07-07 17:50:00 +01:00
|
|
|
];
|
|
|
|
|
2018-05-08 00:36:33 +01:00
|
|
|
# fix paths
|
|
|
|
makeFlags = [
|
2018-10-30 14:58:24 +00:00
|
|
|
"INTROSPECTION_GIRDIR=${placeholder ''dev''}/share/gir-1.0/"
|
|
|
|
"INTROSPECTION_TYPELIBDIR=${placeholder ''out''}/lib/girepository-1.0"
|
2018-05-08 00:36:33 +01:00
|
|
|
];
|
|
|
|
|
2018-10-30 14:58:24 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2018-07-07 17:50:00 +01:00
|
|
|
# TODO: Requires /etc/machine-id
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-05-08 00:36:33 +01:00
|
|
|
# ignore deprecation errors
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ davidak ];
|
|
|
|
};
|
|
|
|
}
|