2020-04-07 21:27:05 +01:00
|
|
|
{ mkDerivation, stdenv, fetchurl, pkgconfig, qttools, scons
|
2018-04-19 20:11:16 +01:00
|
|
|
, GConf, avahi, boost, hunspell, libXScrnSaver, libedit, libidn, libnatpmp, libxml2
|
|
|
|
, lua, miniupnpc, openssl, qtbase, qtmultimedia, qtsvg, qtwebkit, qtx11extras, zlib
|
|
|
|
}:
|
|
|
|
|
2020-04-07 21:27:05 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "swift-im";
|
2018-04-19 20:11:16 +01:00
|
|
|
version = "4.0.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://swift.im/downloads/releases/swift-${version}/swift-${version}.tar.gz";
|
|
|
|
sha256 = "0w0aiszjd58ynxpacwcgf052zpmbpcym4dhci64vbfgch6wryz0w";
|
|
|
|
};
|
|
|
|
|
2018-09-04 10:24:38 +01:00
|
|
|
patches = [ ./qt-5.11.patch ./scons.patch ];
|
2018-04-19 20:11:16 +01:00
|
|
|
|
2020-03-27 13:47:48 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig qttools scons.py2 ];
|
2018-04-19 20:11:16 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
GConf avahi boost hunspell libXScrnSaver libedit libidn libnatpmp libxml2
|
|
|
|
lua miniupnpc openssl qtbase qtmultimedia qtsvg qtwebkit qtx11extras zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ GConf ];
|
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
2018-04-19 20:11:16 +01:00
|
|
|
"-I${libxml2.dev}/include/libxml2"
|
|
|
|
"-I${miniupnpc}/include/miniupnpc"
|
2018-09-04 10:24:38 +01:00
|
|
|
"-I${qtwebkit.dev}/include/QtWebKit"
|
|
|
|
"-I${qtwebkit.dev}/include/QtWebKitWidgets"
|
2018-11-12 02:52:07 +00:00
|
|
|
"-fpermissive"
|
2018-04-19 20:11:16 +01:00
|
|
|
];
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installTargets = [ (placeholder "out") ];
|
|
|
|
installFlags = [ "SWIFT_INSTALLDIR=${placeholder "out"}" ];
|
2018-04-19 20:11:16 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://swift.im/";
|
2018-04-19 20:11:16 +01:00
|
|
|
description = "Qt XMPP client";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|