nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 36 lines 1.0 kB view raw
1{ stdenv, fetchFromGitHub, lib 2, pkg-config, autoreconfHook 3, gtkVersion ? "3" 4, gtk2 5, gtk3 6, ayatana-ido 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libayatana-indicator-gtk${gtkVersion}"; 11 version = "0.8.2"; 12 13 src = fetchFromGitHub { 14 owner = "AyatanaIndicators"; 15 repo = "libayatana-indicator"; 16 rev = version; 17 sha256 = "1wlqm3pj12vgz587a72widbg0vcmm1klsd2lh3mpzfy20m3vjxhj"; 18 }; 19 20 nativeBuildInputs = [ pkg-config autoreconfHook ]; 21 22 buildInputs = [ ayatana-ido ] 23 ++ lib.optionals (gtkVersion == "2") [ gtk2 ] 24 ++ lib.optionals (gtkVersion == "3") [ gtk3 ]; 25 26 configureFlags = [ "--with-gtk=${gtkVersion}" ]; 27 28 meta = with lib; { 29 description = "Ayatana Indicators Shared Library"; 30 homepage = "https://github.com/AyatanaIndicators/libayatana-indicator"; 31 changelog = "https://github.com/AyatanaIndicators/libayatana-indicator/blob/${version}/ChangeLog"; 32 license = licenses.gpl3Plus; 33 maintainers = [ maintainers.nickhu ]; 34 platforms = platforms.linux; 35 }; 36}