2012-06-02 00:04:08 +02:00
|
|
|
{ stdenv, fetchurl, ncurses, openssl, perl, python, aspell, gnutls
|
2012-12-28 02:17:04 +01:00
|
|
|
, zlib, curl , pkgconfig, libgcrypt, ruby, lua5, tcl, guile
|
2013-01-22 12:58:18 +01:00
|
|
|
, pythonPackages, cacert, cmake, makeWrapper }:
|
2010-08-05 17:47:15 +02:00
|
|
|
|
2012-06-02 00:04:08 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-02-09 12:42:26 +01:00
|
|
|
version = "0.4.3";
|
2012-06-02 00:04:08 +02:00
|
|
|
name = "weechat-${version}";
|
2010-08-05 17:47:15 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-02 00:04:08 +02:00
|
|
|
url = "http://weechat.org/files/src/${name}.tar.gz";
|
2014-02-09 12:42:26 +01:00
|
|
|
sha256 = "1sfx2j8xy6das0zis2nmzi9z41q96gzq61xaw4i0xbgag17s7ddz";
|
2010-08-05 17:47:15 +02:00
|
|
|
};
|
|
|
|
|
2012-06-02 00:04:08 +02:00
|
|
|
buildInputs =
|
|
|
|
[ ncurses perl python openssl aspell gnutls zlib curl pkgconfig
|
2012-12-28 02:17:04 +01:00
|
|
|
libgcrypt ruby lua5 tcl guile pythonPackages.pycrypto makeWrapper
|
2013-01-22 12:58:18 +01:00
|
|
|
cacert cmake
|
2012-06-02 00:04:08 +02:00
|
|
|
];
|
2010-08-05 17:47:15 +02:00
|
|
|
|
2014-03-21 13:26:03 +01:00
|
|
|
# This patch is based on
|
|
|
|
# weechat/c324610226cef15ecfb1235113c8243b068084c8. It fixes
|
|
|
|
# freeze/crash on /exit when using nixpkgs' gnutls 3.2. The next
|
|
|
|
# weechat release (0.4.4) will include this, so it's safe to remove
|
|
|
|
# then.
|
|
|
|
patches = [ ./fix-gnutls-32.diff ];
|
|
|
|
|
2012-12-28 02:17:04 +01:00
|
|
|
postInstall = ''
|
2013-10-07 13:24:54 +02:00
|
|
|
wrapProgram "$out/bin/weechat" \
|
2012-12-28 02:17:04 +01:00
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PYTHONPATH : "$out/lib/${python.libPrefix}/site-packages"
|
|
|
|
'';
|
|
|
|
|
2010-08-05 17:47:15 +02:00
|
|
|
meta = {
|
2013-10-07 13:24:54 +02:00
|
|
|
homepage = http://www.weechat.org/;
|
2010-08-05 17:47:15 +02:00
|
|
|
description = "A fast, light and extensible chat client";
|
2012-06-02 00:04:08 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2013-10-07 13:24:54 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ garbas the-kenny ];
|
2012-06-02 00:04:08 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-08-05 17:47:15 +02:00
|
|
|
};
|
|
|
|
}
|