2012-06-01 23:04:08 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, openssl, perl, python, aspell, gnutls
|
2012-12-28 01:17:04 +00:00
|
|
|
, zlib, curl , pkgconfig, libgcrypt, ruby, lua5, tcl, guile
|
2013-01-22 11:58:18 +00:00
|
|
|
, pythonPackages, cacert, cmake, makeWrapper }:
|
2010-08-05 16:47:15 +01:00
|
|
|
|
2012-06-01 23:04:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-02-09 11:42:26 +00:00
|
|
|
version = "0.4.3";
|
2012-06-01 23:04:08 +01:00
|
|
|
name = "weechat-${version}";
|
2010-08-05 16:47:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-01 23:04:08 +01:00
|
|
|
url = "http://weechat.org/files/src/${name}.tar.gz";
|
2014-02-09 11:42:26 +00:00
|
|
|
sha256 = "1sfx2j8xy6das0zis2nmzi9z41q96gzq61xaw4i0xbgag17s7ddz";
|
2010-08-05 16:47:15 +01:00
|
|
|
};
|
|
|
|
|
2012-06-01 23:04:08 +01:00
|
|
|
buildInputs =
|
|
|
|
[ ncurses perl python openssl aspell gnutls zlib curl pkgconfig
|
2012-12-28 01:17:04 +00:00
|
|
|
libgcrypt ruby lua5 tcl guile pythonPackages.pycrypto makeWrapper
|
2013-01-22 11:58:18 +00:00
|
|
|
cacert cmake
|
2012-06-01 23:04:08 +01:00
|
|
|
];
|
2010-08-05 16:47:15 +01:00
|
|
|
|
2014-03-21 12:26:03 +00: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 01:17:04 +00:00
|
|
|
postInstall = ''
|
2013-10-07 12:24:54 +01:00
|
|
|
wrapProgram "$out/bin/weechat" \
|
2012-12-28 01:17:04 +00:00
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PYTHONPATH : "$out/lib/${python.libPrefix}/site-packages"
|
|
|
|
'';
|
|
|
|
|
2010-08-05 16:47:15 +01:00
|
|
|
meta = {
|
2013-10-07 12:24:54 +01:00
|
|
|
homepage = http://www.weechat.org/;
|
2010-08-05 16:47:15 +01:00
|
|
|
description = "A fast, light and extensible chat client";
|
2012-06-01 23:04:08 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2013-10-07 12:24:54 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ garbas the-kenny ];
|
2012-06-01 23:04:08 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-08-05 16:47:15 +01:00
|
|
|
};
|
|
|
|
}
|