diff options
author | Frederick F. Kautz IV <fkautz@alumni.cmu.edu> | 2020-06-30 09:31:49 -0700 |
---|---|---|
committer | Frederick F. Kautz IV <fkautz@alumni.cmu.edu> | 2020-06-30 12:35:44 -0700 |
commit | 19211e9a6a0d369a88f30085a959cd1af5db8ba3 (patch) | |
tree | 28c1cbf4293210abf98b4304dca9e87f376f331c /pkgs/applications | |
parent | 7110bf59e9fa7e867ded61a1199b475c8451b8ef (diff) | |
download | nixpkgs-19211e9a6a0d369a88f30085a959cd1af5db8ba3.tar nixpkgs-19211e9a6a0d369a88f30085a959cd1af5db8ba3.tar.gz nixpkgs-19211e9a6a0d369a88f30085a959cd1af5db8ba3.tar.bz2 nixpkgs-19211e9a6a0d369a88f30085a959cd1af5db8ba3.tar.lz nixpkgs-19211e9a6a0d369a88f30085a959cd1af5db8ba3.tar.xz nixpkgs-19211e9a6a0d369a88f30085a959cd1af5db8ba3.tar.zst nixpkgs-19211e9a6a0d369a88f30085a959cd1af5db8ba3.zip |
pidgin: now builds and runs on osx
We can now build and run pidgin on OSX. Pidgin requires an X11 server to run. * Build: Differences Linux and OSX now parameterized * Darwin: build against gtk2-x11 instead of gtk * Darwin: disable gtkspell2 (spellcheck) * Darwin: disable farstream (voice and video) Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/pidgin/default.nix | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/pkgs/applications/networking/instant-messengers/pidgin/default.nix b/pkgs/applications/networking/instant-messengers/pidgin/default.nix index 369ae069324..eec4b1e1899 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk2, gtkspell2, aspell +{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk2, gtk2-x11 +, gtkspell2, aspell , gst_all_1, startupnotification, gettext , perlPackages, libxml2, nss, nspr, farstream , libXScrnSaver, ncurses, avahi, dbus, dbus-glib, intltool, libidn @@ -29,19 +30,26 @@ let unwrapped = stdenv.mkDerivation rec { NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"; buildInputs = [ - gtkspell2 aspell startupnotification + aspell startupnotification gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good - libxml2 nss nspr farstream + libxml2 nss nspr libXScrnSaver ncurses python avahi dbus dbus-glib intltool libidn libICE libXext libSM cyrus_sasl ] ++ (lib.optional (openssl != null) openssl) ++ (lib.optional (gnutls != null) gnutls) - ++ (lib.optional (libgcrypt != null) libgcrypt); + ++ (lib.optional (libgcrypt != null) libgcrypt) + ++ (lib.optional (stdenv.isLinux) gtk2) + ++ (lib.optional (stdenv.isLinux) gtkspell2) + ++ (lib.optional (stdenv.isLinux) farstream) + ++ (lib.optional (stdenv.isDarwin) gtk2-x11); - propagatedBuildInputs = [ pkgconfig gtk2 gettext ] - ++ (with perlPackages; [ perl XMLParser ]); + + propagatedBuildInputs = [ pkgconfig gettext ] + ++ (with perlPackages; [ perl XMLParser ]) + ++ (lib.optional (stdenv.isLinux) gtk2) + ++ (lib.optional (stdenv.isDarwin) gtk2-x11); patches = [ ./pidgin-makefile.patch ./add-search-path.patch ]; @@ -54,6 +62,8 @@ let unwrapped = stdenv.mkDerivation rec { "--disable-meanwhile" "--disable-nm" "--disable-tcl" + "--disable-gtkspell" + "--disable-vv" ] ++ (lib.optionals (cyrus_sasl != null) [ "--enable-cyrus-sasl=yes" ]) ++ (lib.optionals (gnutls != null) ["--enable-gnutls=yes" "--enable-nss=no"]); @@ -69,7 +79,7 @@ let unwrapped = stdenv.mkDerivation rec { description = "Multi-protocol instant messaging client"; homepage = "http://pidgin.im"; license = licenses.gpl2Plus; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = [ maintainers.vcunat ]; }; }; |