forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ mkDerivation, lib, stdenv, fetchurl, pkgconfig, qttools, sconsPackages
|
|
, GConf, avahi, boost, hunspell, libXScrnSaver, libedit, libidn, libnatpmp, libxml2
|
|
, lua, miniupnpc, openssl, qtbase, qtmultimedia, qtsvg, qtwebkit, qtx11extras, zlib
|
|
}:
|
|
|
|
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 sconsPackages.scons_3_1_2 ];
|
|
|
|
buildInputs = [
|
|
GConf avahi boost hunspell libXScrnSaver libedit libidn libnatpmp libxml2
|
|
lua miniupnpc openssl qtbase qtmultimedia qtsvg qtwebkit qtx11extras zlib
|
|
];
|
|
|
|
propagatedUserEnvPkgs = [ GConf ];
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
"-I${libxml2.dev}/include/libxml2"
|
|
"-I${miniupnpc}/include/miniupnpc"
|
|
"-I${qtwebkit.dev}/include/QtWebKit"
|
|
"-I${qtwebkit.dev}/include/QtWebKitWidgets"
|
|
"-fpermissive"
|
|
];
|
|
|
|
installTargets = [ (placeholder "out") ];
|
|
installFlags = [ "SWIFT_INSTALLDIR=${placeholder "out"}" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://swift.im/";
|
|
description = "Qt XMPP client";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ orivej ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|