lol

indicator libraries: init at 12.10

The indicator libraries for GTK2 and GTK3.

The bindings for Mono do not work yet because of some issues with Perl in
gtk-sharp-2 and an Unhandled Exception caused by building with multiple cores:
https://aur.archlinux.org/packages/libindicate-sharp/#comment-290385

Some packages have TODOs for the indicator libraries,
since it is an optional dependency for most packages.
These packages have not been updated by this commit.

+360
+53
pkgs/development/libraries/indicator-application/gtk2.nix
··· 1 + { stdenv, fetchurl, lib, file 2 + , pkgconfig, autoconf 3 + , glib, dbus_glib, json_glib 4 + , gtk2, libindicator-gtk2, libdbusmenu-gtk2, libappindicator-gtk2 }: 5 + 6 + with lib; 7 + 8 + stdenv.mkDerivation rec { 9 + name = "indicator-application-gtk2-${version}"; 10 + version = "12.10.0.1"; 11 + 12 + src = fetchurl { 13 + url = "${meta.homepage}/indicator-application-gtk2/i-a-${version}/+download/indicator-application-${version}.tar.gz"; 14 + sha256 = "1xqsb6c1pwawabw854f7aybjrgyhc2r1316i9lyjspci51zk5m7v"; 15 + }; 16 + 17 + nativeBuildInputs = [ pkgconfig autoconf ]; 18 + 19 + buildInputs = [ 20 + glib dbus_glib json_glib 21 + gtk2 libindicator-gtk2 libdbusmenu-gtk2 libappindicator-gtk2 22 + ]; 23 + 24 + postPatch = '' 25 + substituteInPlace configure.ac \ 26 + --replace 'DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`' \ 27 + "DBUSSERVICEDIR=$out/share/dbus-1/services" 28 + autoconf 29 + substituteInPlace {configure,ltmain.sh,m4/libtool.m4} \ 30 + --replace /usr/bin/file ${file}/bin/file 31 + substituteInPlace src/Makefile.in \ 32 + --replace 'applicationlibdir = $(INDICATORDIR)' "applicationlibdir = $out/lib" 33 + ''; 34 + 35 + configureFlags = [ 36 + "CFLAGS=-Wno-error" 37 + "--sysconfdir=/etc" 38 + "--localstatedir=/var" 39 + ]; 40 + 41 + installFlags = [ 42 + "sysconfdir=\${out}/etc" 43 + "localstatedir=\${TMPDIR}" 44 + ]; 45 + 46 + meta = { 47 + description = "Indicator to take menus from applications and place them in the panel (GTK+ 2 library for Xfce/LXDE)"; 48 + homepage = "https://launchpad.net/indicators-gtk2"; 49 + license = licenses.gpl3; 50 + platforms = platforms.linux; 51 + maintainers = [ maintainers.msteen ]; 52 + }; 53 + }
+55
pkgs/development/libraries/indicator-application/gtk3.nix
··· 1 + { stdenv, fetchurl, lib, file 2 + , pkgconfig, autoconf 3 + , glib, dbus_glib, json_glib 4 + , gtk3, libindicator-gtk3, libdbusmenu-gtk3, libappindicator-gtk3 }: 5 + 6 + with lib; 7 + 8 + stdenv.mkDerivation rec { 9 + name = "indicator-application-gtk3-${version}"; 10 + version = "${versionMajor}.${versionMinor}"; 11 + versionMajor = "12.10"; 12 + versionMinor = "0"; 13 + 14 + src = fetchurl { 15 + url = "${meta.homepage}/${versionMajor}/${version}/+download/indicator-application-${version}.tar.gz"; 16 + sha256 = "1z8ar0k47l4his7zvffbc2kn658nid51svqnfv0dms601w53gbpr"; 17 + }; 18 + 19 + nativeBuildInputs = [ pkgconfig autoconf ]; 20 + 21 + buildInputs = [ 22 + glib dbus_glib json_glib 23 + gtk3 libindicator-gtk3 libdbusmenu-gtk3 libappindicator-gtk3 24 + ]; 25 + 26 + postPatch = '' 27 + substituteInPlace configure.ac \ 28 + --replace 'DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`' \ 29 + "DBUSSERVICEDIR=$out/share/dbus-1/services" 30 + autoconf 31 + substituteInPlace {configure,ltmain.sh,m4/libtool.m4} \ 32 + --replace /usr/bin/file ${file}/bin/file 33 + substituteInPlace src/Makefile.in \ 34 + --replace 'applicationlibdir = $(INDICATORDIR)' "applicationlibdir = $out/lib" 35 + ''; 36 + 37 + configureFlags = [ 38 + "CFLAGS=-Wno-error" 39 + "--sysconfdir=/etc" 40 + "--localstatedir=/var" 41 + ]; 42 + 43 + installFlags = [ 44 + "sysconfdir=\${out}/etc" 45 + "localstatedir=\${TMPDIR}" 46 + ]; 47 + 48 + meta = { 49 + description = "Indicator to take menus from applications and place them in the panel"; 50 + homepage = "https://launchpad.net/indicator-application"; 51 + license = licenses.gpl3; 52 + platforms = platforms.linux; 53 + maintainers = [ maintainers.msteen ]; 54 + }; 55 + }
+67
pkgs/development/libraries/libappindicator/default.nix
··· 1 + # TODO: Resolve the issues with the Mono bindings. 2 + 3 + { stdenv, fetchurl, lib, file 4 + , pkgconfig, autoconf 5 + , glib, dbus_glib, gtkVersion 6 + , gtk2 ? null, libindicator-gtk2 ? null, libdbusmenu-gtk2 ? null 7 + , gtk3 ? null, libindicator-gtk3 ? null, libdbusmenu-gtk3 ? null 8 + , python, pygobject, pygtk, gobjectIntrospection, vala 9 + , monoSupport ? false, mono ? null, gtk-sharp ? null 10 + }: 11 + 12 + with lib; 13 + 14 + stdenv.mkDerivation rec { 15 + name = let postfix = if gtkVersion == "2" && monoSupport then "sharp" else "gtk${gtkVersion}"; 16 + in "libappindicator-${postfix}-${version}"; 17 + version = "${versionMajor}.${versionMinor}"; 18 + versionMajor = "12.10"; 19 + versionMinor = "0"; 20 + 21 + src = fetchurl { 22 + url = "${meta.homepage}/${versionMajor}/${version}/+download/libappindicator-${version}.tar.gz"; 23 + sha256 = "17xlqd60v0zllrxp8bgq3k5a1jkj0svkqn8rzllcyjh8k0gpr46m"; 24 + }; 25 + 26 + nativeBuildInputs = [ pkgconfig autoconf ]; 27 + 28 + buildInputs = [ 29 + glib dbus_glib 30 + python pygobject pygtk gobjectIntrospection vala 31 + ] ++ (if gtkVersion == "2" 32 + then [ gtk2 libindicator-gtk2 libdbusmenu-gtk2 ] ++ optionals monoSupport [ mono gtk-sharp ] 33 + else [ gtk3 libindicator-gtk3 libdbusmenu-gtk3 ]); 34 + 35 + postPatch = '' 36 + substituteInPlace configure.ac \ 37 + --replace '=codegendir pygtk-2.0' '=codegendir pygobject-2.0' 38 + autoconf 39 + substituteInPlace {configure,ltmain.sh,m4/libtool.m4} \ 40 + --replace /usr/bin/file ${file}/bin/file 41 + ''; 42 + 43 + configureFlags = [ 44 + "CFLAGS=-Wno-error" 45 + "--sysconfdir=/etc" 46 + "--localstatedir=/var" 47 + "--with-gtk=${gtkVersion}" 48 + ]; 49 + 50 + postConfigure = '' 51 + substituteInPlace configure \ 52 + --replace /usr/bin/file ${file}/bin/file 53 + ''; 54 + 55 + installFlags = [ 56 + "sysconfdir=\${out}/etc" 57 + "localstatedir=\${TMPDIR}" 58 + ]; 59 + 60 + meta = { 61 + description = "A library to allow applications to export a menu into the Unity Menu bar"; 62 + homepage = "https://launchpad.net/libappindicator"; 63 + license = with licenses; [ lgpl21 lgpl3 ]; 64 + platforms = platforms.linux; 65 + maintainers = [ maintainers.msteen ]; 66 + }; 67 + }
+59
pkgs/development/libraries/libdbusmenu/default.nix
··· 1 + { stdenv, fetchurl, lib, file 2 + , pkgconfig, intltool 3 + , glib, dbus_glib, json_glib 4 + , gobjectIntrospection, vala, gnome_doc_utils 5 + , gtkVersion ? null, gtk2 ? null, gtk3 ? null }: 6 + 7 + with lib; 8 + 9 + stdenv.mkDerivation rec { 10 + name = let postfix = if gtkVersion == null then "glib" else "gtk${gtkVersion}"; 11 + in "libdbusmenu-${postfix}-${version}"; 12 + version = "${versionMajor}.${versionMinor}"; 13 + versionMajor = "12.10"; 14 + versionMinor = "2"; 15 + 16 + src = fetchurl { 17 + url = "${meta.homepage}/${versionMajor}/${version}/+download/libdbusmenu-${version}.tar.gz"; 18 + sha256 = "9d6ad4a0b918b342ad2ee9230cce8a095eb601cb0cee6ddc1122d0481f9d04c9"; 19 + }; 20 + 21 + nativeBuildInputs = [ pkgconfig intltool ]; 22 + 23 + buildInputs = [ 24 + glib dbus_glib json_glib 25 + gobjectIntrospection vala gnome_doc_utils 26 + ] ++ optional (gtkVersion != null) (if gtkVersion == "2" then gtk2 else gtk3); 27 + 28 + postPatch = '' 29 + substituteInPlace {configure,ltmain.sh,m4/libtool.m4} \ 30 + --replace /usr/bin/file ${file}/bin/file 31 + ''; 32 + 33 + # https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/libdbusmenu 34 + preConfigure = '' 35 + export HAVE_VALGRIND_TRUE="#" 36 + export HAVE_VALGRIND_FALSE="" 37 + ''; 38 + 39 + configureFlags = [ 40 + "CFLAGS=-Wno-error" 41 + "--sysconfdir=/etc" 42 + "--localstatedir=/var" 43 + (if gtkVersion == null then "--disable-gtk" else "--with-gtk=${gtkVersion}") 44 + "--disable-scrollkeeper" 45 + ] ++ optional (gtkVersion != "2") "--disable-dumper"; 46 + 47 + installFlags = [ 48 + "sysconfdir=\${out}/etc" 49 + "localstatedir=\${TMPDIR}" 50 + ]; 51 + 52 + meta = { 53 + description = "A library for passing menu structures across DBus"; 54 + homepage = "https://launchpad.net/dbusmenu"; 55 + license = with licenses; [ gpl3 lgpl21 lgpl3 ]; 56 + platforms = platforms.linux; 57 + maintainers = [ maintainers.msteen ]; 58 + }; 59 + }
+62
pkgs/development/libraries/libindicate/default.nix
··· 1 + # TODO: Resolve the issues with the Mono bindings. 2 + 3 + { stdenv, fetchurl, lib, file 4 + , pkgconfig, autoconf 5 + , glib, dbus_glib, libdbusmenu-glib 6 + , gtkVersion, gtk2 ? null, gtk3 ? null 7 + , python, pygobject, pygtk, gobjectIntrospection, vala, gnome_doc_utils 8 + , monoSupport ? false, mono ? null, gtk-sharp ? null 9 + }: 10 + 11 + with lib; 12 + 13 + stdenv.mkDerivation rec { 14 + name = let postfix = if gtkVersion == "2" && monoSupport then "sharp" else "gtk${gtkVersion}"; 15 + in "libindicate-${postfix}-${version}"; 16 + version = "${versionMajor}.${versionMinor}"; 17 + versionMajor = "12.10"; 18 + versionMinor = "1"; 19 + 20 + src = fetchurl { 21 + url = "${meta.homepage}/${versionMajor}/${version}/+download/libindicate-${version}.tar.gz"; 22 + sha256 = "10am0ymajx633b33anf6b79j37k61z30v9vaf5f9fwk1x5cw1q21"; 23 + }; 24 + 25 + nativeBuildInputs = [ pkgconfig autoconf ]; 26 + 27 + buildInputs = [ 28 + glib dbus_glib libdbusmenu-glib 29 + python pygobject pygtk gobjectIntrospection vala gnome_doc_utils 30 + ] ++ (if gtkVersion == "2" 31 + then [ gtk2 ] ++ optionals monoSupport [ mono gtk-sharp ] 32 + else [ gtk3 ]); 33 + 34 + postPatch = '' 35 + substituteInPlace configure.ac \ 36 + --replace '=codegendir pygtk-2.0' '=codegendir pygobject-2.0' \ 37 + --replace 'pyglib-2.0-python$PYTHON_VERSION' 'pyglib-2.0-python' 38 + autoconf 39 + substituteInPlace {configure,ltmain.sh,m4/libtool.m4} \ 40 + --replace /usr/bin/file ${file}/bin/file 41 + ''; 42 + 43 + configureFlags = [ 44 + "CFLAGS=-Wno-error" 45 + "--sysconfdir=/etc" 46 + "--localstatedir=/var" 47 + "--with-gtk=${gtkVersion}" 48 + ]; 49 + 50 + installFlags = [ 51 + "sysconfdir=\${out}/etc" 52 + "localstatedir=\${TMPDIR}" 53 + ]; 54 + 55 + meta = { 56 + description = "Library for raising indicators via DBus"; 57 + homepage = "https://launchpad.net/libindicate"; 58 + license = with licenses; [ lgpl21 lgpl3 ]; 59 + platforms = platforms.linux; 60 + maintainers = [ maintainers.msteen ]; 61 + }; 62 + }
+48
pkgs/development/libraries/libindicator/default.nix
··· 1 + { stdenv, fetchurl, lib, file 2 + , pkgconfig 3 + , gtkVersion, gtk2 ? null, gtk3 ? null }: 4 + 5 + with lib; 6 + 7 + stdenv.mkDerivation rec { 8 + name = "libindicator-gtk${gtkVersion}-${version}"; 9 + version = "${versionMajor}.${versionMinor}"; 10 + versionMajor = "12.10"; 11 + versionMinor = "1"; 12 + 13 + src = fetchurl { 14 + url = "${meta.homepage}/${versionMajor}/${version}/+download/libindicator-${version}.tar.gz"; 15 + sha256 = "b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f"; 16 + }; 17 + 18 + nativeBuildInputs = [ pkgconfig ]; 19 + 20 + buildInputs = [ (if gtkVersion == "2" then gtk2 else gtk3) ]; 21 + 22 + postPatch = '' 23 + substituteInPlace configure \ 24 + --replace 'LIBINDICATOR_LIBS+="$LIBM"' 'LIBINDICATOR_LIBS+=" $LIBM"' 25 + substituteInPlace {build-aux/ltmain.sh,configure,m4/libtool.m4} \ 26 + --replace /usr/bin/file ${file}/bin/file 27 + ''; 28 + 29 + configureFlags = [ 30 + "CFLAGS=-Wno-error" 31 + "--sysconfdir=/etc" 32 + "--localstatedir=/var" 33 + "--with-gtk=${gtkVersion}" 34 + ]; 35 + 36 + installFlags = [ 37 + "sysconfdir=\${out}/etc" 38 + "localstatedir=\${TMPDIR}" 39 + ]; 40 + 41 + meta = { 42 + description = "A set of symbols and convenience functions for Ayatana indicators"; 43 + homepage = "https://launchpad.net/libindicator"; 44 + license = licenses.gpl3; 45 + platforms = platforms.linux; 46 + maintainers = [ maintainers.msteen ]; 47 + }; 48 + }
+16
pkgs/top-level/all-packages.nix
··· 6623 6623 6624 6624 incrtcl = callPackage ../development/libraries/incrtcl { }; 6625 6625 6626 + indicator-application-gtk2 = callPackage ../development/libraries/indicator-application/gtk2.nix { }; 6627 + indicator-application-gtk3 = callPackage ../development/libraries/indicator-application/gtk3.nix { }; 6628 + 6626 6629 indilib = callPackage ../development/libraries/indilib { }; 6627 6630 6628 6631 iniparser = callPackage ../development/libraries/iniparser { }; ··· 6774 6777 6775 6778 libantlr3c = callPackage ../development/libraries/libantlr3c {}; 6776 6779 6780 + libappindicator-gtk2 = callPackage ../development/libraries/libappindicator { gtkVersion = "2"; }; 6781 + libappindicator-gtk3 = callPackage ../development/libraries/libappindicator { gtkVersion = "3"; }; 6782 + 6777 6783 libarchive = callPackage ../development/libraries/libarchive { }; 6778 6784 6779 6785 libasr = callPackage ../development/libraries/libasr { }; ··· 6877 6883 inherit sqlite libmysql; 6878 6884 }; 6879 6885 6886 + libdbusmenu-glib = callPackage ../development/libraries/libdbusmenu { }; 6887 + libdbusmenu-gtk2 = callPackage ../development/libraries/libdbusmenu { gtkVersion = "2"; }; 6888 + libdbusmenu-gtk3 = callPackage ../development/libraries/libdbusmenu { gtkVersion = "3"; }; 6889 + 6880 6890 libdbusmenu_qt = callPackage ../development/libraries/libdbusmenu-qt { }; 6881 6891 6882 6892 libdbusmenu_qt5 = callPackage ../development/libraries/libdbusmenu-qt/qt-5.4.nix { }; ··· 7057 7067 libicns = callPackage ../development/libraries/libicns { }; 7058 7068 7059 7069 libimobiledevice = callPackage ../development/libraries/libimobiledevice { }; 7070 + 7071 + libindicate-gtk2 = callPackage ../development/libraries/libindicate { gtkVersion = "2"; }; 7072 + libindicate-gtk3 = callPackage ../development/libraries/libindicate { gtkVersion = "3"; }; 7073 + 7074 + libindicator-gtk2 = callPackage ../development/libraries/libindicator { gtkVersion = "2"; }; 7075 + libindicator-gtk3 = callPackage ../development/libraries/libindicator { gtkVersion = "3"; }; 7060 7076 7061 7077 libiodbc = callPackage ../development/libraries/libiodbc { 7062 7078 useGTK = config.libiodbc.gtk or false;