2018-08-16 00:36:49 +01:00
|
|
|
{ stdenv, fetchbzr
|
|
|
|
, pkgconfig, systemd, autoreconfHook
|
2018-02-25 02:23:58 +00:00
|
|
|
, glib, dbus-glib, json-glib
|
2015-11-02 14:23:35 +00:00
|
|
|
, gtk3, libindicator-gtk3, libdbusmenu-gtk3, libappindicator-gtk3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-16 00:36:49 +01:00
|
|
|
pname = "indicator-application";
|
|
|
|
version = "12.10.1";
|
|
|
|
|
|
|
|
name = "${pname}-gtk3-${version}";
|
|
|
|
|
|
|
|
src = fetchbzr {
|
|
|
|
url = "https://code.launchpad.net/~indicator-applet-developers/${pname}/trunk.17.04";
|
|
|
|
rev = "260";
|
|
|
|
sha256 = "1f0jdyqqb5g86zdpbcyn16x94yjigsfiv2kf73dvni5rp1vafbq1";
|
2015-11-02 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2018-08-16 00:36:49 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
2015-11-02 14:23:35 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2018-08-16 00:36:49 +01:00
|
|
|
glib dbus-glib json-glib systemd
|
2015-11-02 14:23:35 +00:00
|
|
|
gtk3 libindicator-gtk3 libdbusmenu-gtk3 libappindicator-gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2018-08-16 00:36:49 +01:00
|
|
|
substituteInPlace data/Makefile.am \
|
|
|
|
--replace "/etc/xdg/autostart" "$out/etc/xdg/autostart"
|
2015-11-02 14:23:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"CFLAGS=-Wno-error"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
|
|
|
|
2018-08-16 00:36:49 +01:00
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "$(out)/lib/systemd/user";
|
|
|
|
PKG_CONFIG_INDICATOR3_0_4_INDICATORDIR = "$(out)/lib/indicators3/7/";
|
|
|
|
|
|
|
|
# Upstart is not used in NixOS
|
|
|
|
postFixup = ''
|
|
|
|
rm -rf $out/share/indicator-application/upstart
|
|
|
|
rm -rf $out/share/upstart
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-11-02 14:23:35 +00:00
|
|
|
description = "Indicator to take menus from applications and place them in the panel";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://launchpad.net/indicator-application";
|
2015-11-02 14:23:35 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|