2010-06-20 23:48:59 +00:00
|
|
|
{ monolithic ? true # build monolithic Quassel
|
|
|
|
, daemon ? false # build Quassel daemon
|
|
|
|
, client ? false # build Quassel client
|
2013-10-07 15:11:22 +00:00
|
|
|
, withKDE ? stdenv.isLinux # enable KDE integration
|
2010-06-20 23:48:59 +00:00
|
|
|
, ssl ? true # enable SSL support
|
|
|
|
, previews ? false # enable webpage previews on hovering over URLs
|
2013-12-05 22:29:23 +00:00
|
|
|
, tag ? "" # tag added to the package name
|
2010-10-05 18:08:45 +00:00
|
|
|
, stdenv, fetchurl, cmake, qt4, kdelibs, automoc4, phonon }:
|
2010-06-20 23:48:59 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
edf = flag: feature: [("-D" + feature + (if flag then "=ON" else "=OFF"))];
|
|
|
|
|
|
|
|
in with stdenv; mkDerivation rec {
|
|
|
|
|
2014-03-26 17:18:15 +00:00
|
|
|
version = "0.10.0";
|
2013-12-05 22:29:23 +00:00
|
|
|
name = "quassel${tag}-${version}";
|
2010-06-20 23:48:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-05 22:29:23 +00:00
|
|
|
url = "http://quassel-irc.org/pub/quassel-${version}.tar.bz2";
|
2014-03-26 17:18:15 +00:00
|
|
|
sha256 = "08vwxkwnzlgnxn0wi6ga9fk8qgc6nklb236hsfnr5ad37bi8q8k8";
|
2010-06-20 23:48:59 +00:00
|
|
|
};
|
|
|
|
|
2013-12-05 22:29:23 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-06-20 23:48:59 +00:00
|
|
|
buildInputs = [ cmake qt4 ]
|
2010-10-05 18:08:45 +00:00
|
|
|
++ lib.optional withKDE kdelibs
|
|
|
|
++ lib.optional withKDE automoc4
|
|
|
|
++ lib.optional withKDE phonon;
|
2010-06-20 23:48:59 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_DBUS=OFF"
|
|
|
|
"-DWITH_LIBINDICATE=OFF"
|
|
|
|
"-DEMBED_DATA=OFF"
|
|
|
|
"-DSTATIC=OFF"
|
|
|
|
"-DWITH_PHONON=ON" ]
|
|
|
|
++ edf monolithic "WANT_MONO"
|
|
|
|
++ edf daemon "WANT_CORE"
|
|
|
|
++ edf client "WANT_QTCLIENT"
|
2010-10-05 18:08:45 +00:00
|
|
|
++ edf withKDE "WITH_KDE"
|
2010-06-20 23:48:59 +00:00
|
|
|
++ edf ssl "WITH_OPENSSL"
|
|
|
|
++ edf previews "WITH_WEBKIT" ;
|
|
|
|
|
2010-06-26 01:40:50 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-06-20 23:48:59 +00:00
|
|
|
homepage = http://quassel-irc.org/;
|
|
|
|
description = "Qt4/KDE4 distributed IRC client suppporting a remote daemon";
|
|
|
|
longDescription = ''
|
|
|
|
Quassel IRC is a cross-platform, distributed IRC client,
|
|
|
|
meaning that one (or multiple) client(s) can attach to
|
|
|
|
and detach from a central core -- much like the popular
|
|
|
|
combination of screen and a text-based IRC client such
|
2010-08-03 14:17:55 +00:00
|
|
|
as WeeChat, but graphical (based on Qt4/KDE4).
|
2010-06-20 23:48:59 +00:00
|
|
|
'';
|
|
|
|
license = "GPLv3";
|
2010-06-26 01:40:50 +00:00
|
|
|
maintainers = [ maintainers.phreedom ];
|
2013-09-16 22:41:35 +00:00
|
|
|
repositories.git = https://github.com/quassel/quassel.git;
|
2010-08-03 14:17:55 +00:00
|
|
|
inherit (qt4.meta) platforms;
|
2010-06-20 23:48:59 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|