Merge pull request #209369 from wegank/swift-im-drop

swift-im: drop

authored by Thiago Kenji Okada and committed by GitHub d208ef59 9d9459a1

+1 -112
-44
pkgs/applications/networking/instant-messengers/swift-im/default.nix
··· 1 - { mkDerivation, lib, fetchurl, pkg-config, qttools, sconsPackages 2 - , GConf, avahi, boost, hunspell, libXScrnSaver, libedit, libidn, libnatpmp, libxml2 3 - , lua, miniupnpc, openssl, qtbase, qtmultimedia, qtsvg, qtwebkit, qtx11extras, zlib 4 - }: 5 - 6 - mkDerivation rec { 7 - pname = "swift-im"; 8 - version = "4.0.2"; 9 - 10 - src = fetchurl { 11 - url = "https://swift.im/downloads/releases/swift-${version}/swift-${version}.tar.gz"; 12 - sha256 = "0w0aiszjd58ynxpacwcgf052zpmbpcym4dhci64vbfgch6wryz0w"; 13 - }; 14 - 15 - patches = [ ./qt-5.11.patch ./scons.patch ]; 16 - 17 - nativeBuildInputs = [ pkg-config qttools sconsPackages.scons_3_1_2 ]; 18 - 19 - buildInputs = [ 20 - GConf avahi boost hunspell libXScrnSaver libedit libidn libnatpmp libxml2 21 - lua miniupnpc openssl qtbase qtmultimedia qtsvg qtwebkit qtx11extras zlib 22 - ]; 23 - 24 - propagatedUserEnvPkgs = [ GConf ]; 25 - 26 - NIX_CFLAGS_COMPILE = toString [ 27 - "-I${libxml2.dev}/include/libxml2" 28 - "-I${miniupnpc}/include/miniupnpc" 29 - "-I${qtwebkit.dev}/include/QtWebKit" 30 - "-I${qtwebkit.dev}/include/QtWebKitWidgets" 31 - "-fpermissive" 32 - ]; 33 - 34 - installTargets = [ (placeholder "out") ]; 35 - installFlags = [ "SWIFT_INSTALLDIR=${placeholder "out"}" ]; 36 - 37 - meta = with lib; { 38 - homepage = "https://swift.im/"; 39 - description = "Qt XMPP client"; 40 - license = licenses.gpl3; 41 - maintainers = with maintainers; [ orivej ]; 42 - platforms = platforms.linux; 43 - }; 44 - }
-10
pkgs/applications/networking/instant-messengers/swift-im/qt-5.11.patch
··· 1 - --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.h 2 - +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.h 3 - @@ -8,6 +8,7 @@ 4 - 5 - #include <set> 6 - 7 - +#include <QAbstractItemModel> 8 - #include <QWizard> 9 - 10 - #include <Swiften/Base/Override.h>
-53
pkgs/applications/networking/instant-messengers/swift-im/scons.patch
··· 1 - diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot 2 - index 40f242513..53e1ff26a 100644 3 - --- a/BuildTools/SCons/SConscript.boot 4 - +++ b/BuildTools/SCons/SConscript.boot 5 - @@ -508,6 +508,7 @@ if env.get("distcc", False) : 6 - if var.startswith("DISTCC_") : 7 - env["ENV"][var] = os.environ[var] 8 - 9 - +env["ENV"] = os.environ 10 - conf_env = env.Clone() 11 - 12 - Export("env") 13 - diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct 14 - index 70bffbcfe..fef281899 100644 15 - --- a/BuildTools/SCons/SConstruct 16 - +++ b/BuildTools/SCons/SConstruct 17 - @@ -272,7 +272,7 @@ if env.get("try_gconf", True) and env["PLATFORM"] != "win32" and env["PLATFORM"] 18 - gconf_env = conf_env.Clone() 19 - conf = Configure(gconf_env, custom_tests = {"CheckPKG": CheckPKG}) 20 - if conf.CheckPKG("gconf-2.0") : 21 - - gconf_bare_env = Environment() 22 - + gconf_bare_env = Environment(ENV = os.environ) 23 - gconf_bare_env.ParseConfig('pkg-config --cflags gconf-2.0 gobject-2.0 --libs gconf-2.0 gobject-2.0') 24 - if os.path.basename(env["CXX"]).startswith(("g++", "clang++")) : 25 - gconf_bare_env["CCFLAGS"] = [("-isystem" + ccflag) for ccflag in gconf_bare_env["CPPPATH"]] 26 - @@ -634,9 +634,9 @@ hunspell_env.MergeFlags(hunspell_flags) 27 - env["HAVE_HUNSPELL"] = 0; 28 - if env.get("hunspell_enable", False) : 29 - hunspell_conf = Configure(hunspell_env) 30 - - if hunspell_conf.CheckCXXHeader("hunspell/hunspell.hxx") and hunspell_conf.CheckLib("hunspell") : 31 - + if hunspell_conf.CheckCXXHeader("hunspell/hunspell.hxx") and hunspell_conf.CheckLib("hunspell-1.6") : 32 - env["HAVE_HUNSPELL"] = 1 33 - - hunspell_flags["LIBS"] = ["hunspell"] 34 - + hunspell_flags["LIBS"] = ["hunspell-1.6"] 35 - env["HUNSPELL_FLAGS"] = hunspell_flags 36 - hunspell_conf.Finish() 37 - 38 - diff --git a/BuildTools/SCons/Tools/textfile.py b/BuildTools/SCons/Tools/textfile.py 39 - index 89f8963dc..b8559f7a6 100644 40 - --- a/BuildTools/SCons/Tools/textfile.py 41 - +++ b/BuildTools/SCons/Tools/textfile.py 42 - @@ -113,7 +113,10 @@ def _action(target, source, env): 43 - lsep = None 44 - for s in source: 45 - if lsep: fd.write(lsep) 46 - - fd.write(_do_subst(s, subs)) 47 - + b = _do_subst(s, subs) 48 - + if isinstance(b, unicode): 49 - + b = b.encode('UTF-8') 50 - + fd.write(b) 51 - lsep = linesep 52 - fd.close() 53 -
+1
pkgs/top-level/aliases.nix
··· 1459 1459 surf-webkit2 = throw "'surf-webkit2' has been renamed to/replaced by 'surf'"; # Converted to throw 2022-02-22 1460 1460 swec = throw "swec has been removed; broken and abandoned upstream"; # Added 2021-10-14 1461 1461 sweep-visualizer = throw "'sweep-visualizer' is abondoned upstream and depends on deprecated GNOME2/GTK2"; # Added 2022-06-15 1462 + swift-im = throw "swift-im has been removed as it is unmaintained and depends on deprecated Python 2 / Qt WebKit"; # Added 2023-01-06 1462 1463 swfdec = throw "swfdec has been removed as broken and unmaintained"; # Added 2020-08-23 1463 1464 swtpm-tpm2 = swtpm; # Added 2021-02-26 1464 1465 syncthing-cli = syncthing; # Added 2021-04-06
-5
pkgs/top-level/all-packages.nix
··· 32527 32527 32528 32528 swh_lv2 = callPackage ../applications/audio/swh-lv2 { }; 32529 32529 32530 - swift-im = libsForQt5.callPackage ../applications/networking/instant-messengers/swift-im { 32531 - inherit (gnome2) GConf; 32532 - boost = boost168; 32533 - }; 32534 - 32535 32530 sylpheed = callPackage ../applications/networking/mailreaders/sylpheed { 32536 32531 inherit (darwin.apple_sdk.frameworks) Foundation; 32537 32532 };