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
|
2015-08-21 22:02:39 +01:00
|
|
|
, pythonPackages, cmake, makeWrapper, libobjc, libiconv
|
2015-02-28 01:34:18 +00:00
|
|
|
, extraBuildInputs ? [] }:
|
2010-08-05 16:47:15 +01:00
|
|
|
|
2012-06-01 23:04:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-21 07:20:39 +00:00
|
|
|
version = "1.4";
|
2012-06-01 23:04:08 +01:00
|
|
|
name = "weechat-${version}";
|
2010-08-05 16:47:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-06-07 14:21:00 +01:00
|
|
|
url = "http://weechat.org/files/src/weechat-${version}.tar.bz2";
|
2016-01-21 07:20:39 +00:00
|
|
|
sha256 = "1m6xq6izcac5186xvvmm8znfjzrg9hq42p69jabdvv7cri4rjvg0";
|
2010-08-05 16:47:15 +01:00
|
|
|
};
|
|
|
|
|
2015-08-21 22:02:39 +01:00
|
|
|
cmakeFlags = stdenv.lib.optional stdenv.isDarwin
|
|
|
|
"-DICONV_LIBRARY=${libiconv}/lib/libiconv.dylib";
|
|
|
|
|
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
|
2015-07-31 00:30:15 +01:00
|
|
|
cmake ]
|
2015-06-22 22:10:41 +01:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ pythonPackages.pync libobjc ]
|
2015-02-28 01:34:18 +00:00
|
|
|
++ extraBuildInputs;
|
2010-08-05 16:47:15 +01:00
|
|
|
|
2015-07-31 00:30:15 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix} -DCA_FILE=/etc/ssl/certs/ca-certificates.crt";
|
2014-05-14 02:31:43 +01:00
|
|
|
|
2012-12-28 01:17:04 +00:00
|
|
|
postInstall = ''
|
2014-05-14 05:46:39 +01:00
|
|
|
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"
|
2015-02-28 01:34:18 +00:00
|
|
|
wrapProgram "$out/bin/weechat" \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PYTHONPATH : "$NIX_PYTHONPATH"
|
2012-12-28 01:17:04 +00:00
|
|
|
'';
|
|
|
|
|
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;
|
2014-05-14 02:31:43 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ lovek323 garbas the-kenny ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-08-05 16:47:15 +01:00
|
|
|
};
|
|
|
|
}
|