2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchbzr
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config, systemd, autoreconfHook
|
2018-02-25 03:23:58 +01:00
|
|
|
, glib, dbus-glib, json-glib
|
2015-11-02 15:23:35 +01:00
|
|
|
, gtk3, libindicator-gtk3, libdbusmenu-gtk3, libappindicator-gtk3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-16 01:36:49 +02: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 15:23:35 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2015-11-02 15:23:35 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2018-08-16 01:36:49 +02:00
|
|
|
glib dbus-glib json-glib systemd
|
2015-11-02 15:23:35 +01:00
|
|
|
gtk3 libindicator-gtk3 libdbusmenu-gtk3 libappindicator-gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2018-08-16 01:36:49 +02:00
|
|
|
substituteInPlace data/Makefile.am \
|
|
|
|
--replace "/etc/xdg/autostart" "$out/etc/xdg/autostart"
|
2015-11-02 15:23:35 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"CFLAGS=-Wno-error"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
|
|
|
|
2018-08-16 01:36:49 +02: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
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2015-11-02 15:23:35 +01:00
|
|
|
description = "Indicator to take menus from applications and place them in the panel";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://launchpad.net/indicator-application";
|
2015-11-02 15:23:35 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|