3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/swift-im/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, qttools, scons
, GConf, avahi, boost, hunspell, libXScrnSaver, libedit, libidn, libnatpmp, libxml2
, lua, miniupnpc, openssl, qtbase, qtmultimedia, qtsvg, qtwebkit, qtx11extras, zlib
}:
stdenv.mkDerivation rec {
pname = "swift-im";
version = "4.0.2";
src = fetchurl {
url = "https://swift.im/downloads/releases/swift-${version}/swift-${version}.tar.gz";
sha256 = "0w0aiszjd58ynxpacwcgf052zpmbpcym4dhci64vbfgch6wryz0w";
};
patches = [ ./qt-5.11.patch ./scons.patch ];
nativeBuildInputs = [ pkgconfig qttools scons.py2 ];
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 [
"-I${libxml2.dev}/include/libxml2"
"-I${miniupnpc}/include/miniupnpc"
"-I${qtwebkit.dev}/include/QtWebKit"
"-I${qtwebkit.dev}/include/QtWebKitWidgets"
"-fpermissive"
];
2019-11-05 01:10:31 +00:00
installTargets = [ (placeholder "out") ];
installFlags = [ "SWIFT_INSTALLDIR=${placeholder "out"}" ];
meta = with stdenv.lib; {
homepage = https://swift.im/;
description = "Qt XMPP client";
license = licenses.gpl3;
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}