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

82 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, autoconf, automake, libtool, gnome3, which, fetchgit, libgtop, libwnck3, glib, vala, pkgconfig
, libstartup_notification, gobjectIntrospection, gtk-doc, docbook_xsl
, xorgserver, dbus, python2 }:
2018-05-08 00:36:33 +01:00
stdenv.mkDerivation rec {
name = "bamf-2018-02-07";
2018-05-08 00:36:33 +01:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchgit {
url = https://git.launchpad.net/~unity-team/bamf;
rev = "0.5.3+18.04.20180207.2-0ubuntu1";
sha256 = "0hvbgzi0mzzzvcamd9mi1ykbk2l6zxffspyk5fpik8bij56nhzym";
2018-05-08 00:36:33 +01:00
};
nativeBuildInputs = [
autoconf
automake
docbook_xsl
gnome3.gnome-common
2018-05-08 00:36:33 +01:00
gobjectIntrospection
gtk-doc
libtool
pkgconfig
vala
which
# Tests
python2
python2.pkgs.libxslt
python2.pkgs.libxml2
dbus
xorgserver
2018-05-08 00:36:33 +01:00
];
buildInputs = [
glib
libgtop
libstartup_notification
libwnck3
];
2018-05-08 00:36:33 +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.am \
--replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user'
2018-05-08 00:36:33 +01:00
'';
configureFlags = [
"--enable-headless-tests"
"--enable-gtk-doc"
];
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;
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 ];
};
}