2020-08-20 17:08:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, lib
|
2020-10-16 20:44:37 +00:00
|
|
|
, pkg-config, autoreconfHook
|
2020-08-20 17:08:02 +00:00
|
|
|
, gtkVersion ? "3"
|
|
|
|
, gtk2
|
|
|
|
, gtk3
|
|
|
|
, ayatana-ido
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libayatana-indicator-gtk${gtkVersion}";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "0.8.2";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AyatanaIndicators";
|
|
|
|
repo = "libayatana-indicator";
|
|
|
|
rev = version;
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "1wlqm3pj12vgz587a72widbg0vcmm1klsd2lh3mpzfy20m3vjxhj";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildInputs = [ ayatana-ido ]
|
2021-08-05 21:33:18 +00:00
|
|
|
++ lib.optionals (gtkVersion == "2") [ gtk2 ]
|
|
|
|
++ lib.optionals (gtkVersion == "3") [ gtk3 ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--with-gtk=${gtkVersion}" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Ayatana Indicators Shared Library";
|
|
|
|
homepage = "https://github.com/AyatanaIndicators/libayatana-indicator";
|
|
|
|
changelog = "https://github.com/AyatanaIndicators/libayatana-indicator/blob/${version}/ChangeLog";
|
2020-10-16 20:44:37 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = [ maintainers.nickhu ];
|
2020-10-16 20:44:37 +00:00
|
|
|
platforms = platforms.linux;
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|