3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libayatana-indicator/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

2020-05-24 16:25:38 +01:00
{ stdenv, fetchFromGitHub, lib
, pkg-config, autoreconfHook
2020-05-24 16:25:38 +01:00
, gtkVersion ? "3"
, gtk2
, gtk3
, ayatana-ido
}:
stdenv.mkDerivation rec {
pname = "libayatana-indicator-gtk${gtkVersion}";
version = "0.8.2";
2020-05-24 16:25:38 +01:00
src = fetchFromGitHub {
owner = "AyatanaIndicators";
repo = "libayatana-indicator";
rev = version;
sha256 = "1wlqm3pj12vgz587a72widbg0vcmm1klsd2lh3mpzfy20m3vjxhj";
2020-05-24 16:25:38 +01:00
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
2020-05-24 16:25:38 +01:00
buildInputs = [ ayatana-ido ]
++ lib.lists.optionals (gtkVersion == "2") [ gtk2 ]
++ lib.lists.optionals (gtkVersion == "3") [ gtk3 ];
configureFlags = [ "--with-gtk=${gtkVersion}" ];
meta = with stdenv.lib; {
description = "Ayatana Indicators Shared Library";
homepage = "https://github.com/AyatanaIndicators/libayatana-indicator";
changelog = "https://github.com/AyatanaIndicators/libayatana-indicator/blob/${version}/ChangeLog";
license = licenses.gpl3Plus;
2020-05-24 16:25:38 +01:00
maintainers = [ maintainers.nickhu ];
platforms = platforms.linux;
2020-05-24 16:25:38 +01:00
};
}