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-02-28 01:34:18 +00:00
|
|
|
, pythonPackages, cacert, cmake, makeWrapper
|
|
|
|
, extraBuildInputs ? [] }:
|
2010-08-05 16:47:15 +01:00
|
|
|
|
2012-06-01 23:04:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-02-05 07:40:07 +00:00
|
|
|
version = "1.1.1";
|
2012-06-01 23:04:08 +01:00
|
|
|
name = "weechat-${version}";
|
2010-08-05 16:47:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-05 07:40:07 +00:00
|
|
|
url = "http://weechat.org/files/src/weechat-${version}.tar.gz";
|
|
|
|
sha256 = "0j8kc2zsv7ybgq6wi0r8siyd3adl3528gymgmidijd78smbpwbx3";
|
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
|
2014-05-14 05:46:39 +01:00
|
|
|
cacert cmake ]
|
2015-02-28 01:34:18 +00:00
|
|
|
++ extraBuildInputs;
|
2010-08-05 16:47:15 +01:00
|
|
|
|
2015-06-05 21:00:52 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix} -DCA_FILE=${cacert}/etc/ssl/certs/ca-bundle.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
|
|
|
};
|
|
|
|
}
|