2015-11-02 14:23:35 +00:00
|
|
|
{ stdenv, fetchurl, lib, file
|
|
|
|
, pkgconfig, autoconf
|
2018-02-25 02:23:58 +00:00
|
|
|
, glib, dbus-glib, json-glib
|
2015-11-02 14:23:35 +00:00
|
|
|
, gtk2, libindicator-gtk2, libdbusmenu-gtk2, libappindicator-gtk2 }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "indicator-application-gtk2";
|
2015-11-02 14:23:35 +00:00
|
|
|
version = "12.10.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/indicator-application-gtk2/i-a-${version}/+download/indicator-application-${version}.tar.gz";
|
|
|
|
sha256 = "1xqsb6c1pwawabw854f7aybjrgyhc2r1316i9lyjspci51zk5m7v";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoconf ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
glib dbus-glib json-glib
|
2015-11-02 14:23:35 +00:00
|
|
|
gtk2 libindicator-gtk2 libdbusmenu-gtk2 libappindicator-gtk2
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace 'DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`' \
|
|
|
|
"DBUSSERVICEDIR=$out/share/dbus-1/services"
|
|
|
|
autoconf
|
2017-08-04 03:20:44 +01:00
|
|
|
for f in {configure,ltmain.sh,m4/libtool.m4}; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace /usr/bin/file ${file}/bin/file
|
|
|
|
done
|
2015-11-02 14:23:35 +00:00
|
|
|
substituteInPlace src/Makefile.in \
|
|
|
|
--replace 'applicationlibdir = $(INDICATORDIR)' "applicationlibdir = $out/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"CFLAGS=-Wno-error"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Indicator to take menus from applications and place them in the panel (GTK+ 2 library for Xfce/LXDE)";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://launchpad.net/indicators-gtk2;
|
2015-11-02 14:23:35 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|