Merge pull request #203347 from SuperSandro2000/libappindicator

This commit is contained in:
Sandro 2022-11-28 02:54:25 +01:00 committed by GitHub
commit 86c27c210f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,17 +2,15 @@
{ stdenv, fetchgit, lib { stdenv, fetchgit, lib
, pkg-config, autoreconfHook , pkg-config, autoreconfHook
, glib, dbus-glib, gtkVersion ? "3" , glib, dbus-glib
, gtk2 ? null, libindicator-gtk2 ? null, libdbusmenu-gtk2 ? null , gtkVersion ? "3"
, gtk3 ? null, libindicator-gtk3 ? null, libdbusmenu-gtk3 ? null , gtk2, libindicator-gtk2, libdbusmenu-gtk2
, gtk3, libindicator-gtk3, libdbusmenu-gtk3
, gtk-doc, vala, gobject-introspection , gtk-doc, vala, gobject-introspection
, monoSupport ? false, mono ? null, gtk-sharp-2_0 ? null , monoSupport ? false, mono, gtk-sharp-2_0
}: }:
with lib; stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = let postfix = if gtkVersion == "2" && monoSupport then "sharp" else "gtk${gtkVersion}"; pname = let postfix = if gtkVersion == "2" && monoSupport then "sharp" else "gtk${gtkVersion}";
in "libappindicator-${postfix}"; in "libappindicator-${postfix}";
version = "12.10.1+20.10.20200706.1"; version = "12.10.1+20.10.20200706.1";
@ -35,7 +33,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
glib dbus-glib glib dbus-glib
] ++ (if gtkVersion == "2" ] ++ (if gtkVersion == "2"
then [ libindicator-gtk2 ] ++ optionals monoSupport [ mono gtk-sharp-2_0 ] then [ libindicator-gtk2 ] ++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ]
else [ libindicator-gtk3 ]); else [ libindicator-gtk3 ]);
preAutoreconf = '' preAutoreconf = ''
@ -56,7 +54,7 @@ stdenv.mkDerivation rec {
"localstatedir=\${TMPDIR}" "localstatedir=\${TMPDIR}"
]; ];
meta = { meta = with lib; {
description = "A library to allow applications to export a menu into the Unity Menu bar"; description = "A library to allow applications to export a menu into the Unity Menu bar";
homepage = "https://launchpad.net/libappindicator"; homepage = "https://launchpad.net/libappindicator";
license = with licenses; [ lgpl21 lgpl3 ]; license = with licenses; [ lgpl21 lgpl3 ];