2018-05-08 00:36:33 +01:00
|
|
|
{ stdenv, fetchurl, libgtop, libwnck3, glib, vala, pkgconfig
|
|
|
|
, libstartup_notification, gobjectIntrospection, gtk-doc
|
2018-07-07 17:50:00 +01:00
|
|
|
, xorgserver, dbus, python2 }:
|
2018-05-08 00:36:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bamf";
|
|
|
|
version = "0.5.3";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2018-07-07 17:50:00 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2018-05-08 00:36:33 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/${pname}/0.5/${version}/+download/${name}.tar.gz";
|
|
|
|
sha256 = "051vib8ndp09ph5bfwkgmzda94varzjafwxf6lqx7z1s8rd7n39l";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
gtk-doc
|
|
|
|
gobjectIntrospection
|
2018-07-07 17:50:00 +01:00
|
|
|
vala
|
|
|
|
# Tests
|
|
|
|
xorgserver
|
|
|
|
dbus
|
|
|
|
(python2.withPackages (pkgs: with pkgs; [ libxslt libxml2 ]))
|
2018-05-08 00:36:33 +01:00
|
|
|
];
|
|
|
|
|
2018-07-07 17:50:00 +01:00
|
|
|
buildInputs = [
|
|
|
|
libgtop
|
|
|
|
libwnck3
|
|
|
|
libstartup_notification
|
|
|
|
glib
|
|
|
|
];
|
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 = ''
|
|
|
|
substituteInPlace data/Makefile.in \
|
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-05-08 00:36:33 +01:00
|
|
|
# fix paths
|
|
|
|
makeFlags = [
|
2018-07-07 17:50:00 +01:00
|
|
|
"INTROSPECTION_GIRDIR=$(dev)/share/gir-1.0/"
|
2018-05-08 00:36:33 +01:00
|
|
|
"INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|