2016-05-09 12:38:31 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, lua, perl, python
|
2014-03-07 19:42:29 +01:00
|
|
|
, libtool, pciutils, dbus_glib, libcanberra, libproxy
|
2015-06-22 12:28:28 +02:00
|
|
|
, libsexy, enchant, libnotify, openssl, intltool
|
2014-03-07 19:42:29 +01:00
|
|
|
, desktop_file_utils, hicolor_icon_theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-09 12:38:31 +02:00
|
|
|
version = "2.12.1";
|
2014-03-07 19:42:29 +01:00
|
|
|
name = "hexchat-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dl.hexchat.net/hexchat/${name}.tar.xz";
|
2016-05-09 12:38:31 +02:00
|
|
|
sha256 = "0svwz9ldrry1sn35jywgpacjj1cf3xl3k74ynwn8rjvxs73b00aj";
|
2014-03-07 19:42:29 +01:00
|
|
|
};
|
|
|
|
|
2016-05-09 12:38:31 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig libtool intltool
|
|
|
|
];
|
|
|
|
|
2014-03-07 19:42:29 +01:00
|
|
|
buildInputs = [
|
2016-05-09 12:38:31 +02:00
|
|
|
gtk lua perl python pciutils dbus_glib libcanberra libproxy
|
|
|
|
libsexy libnotify openssl desktop_file_utils hicolor_icon_theme
|
2014-03-07 19:42:29 +01:00
|
|
|
];
|
|
|
|
|
2016-05-09 12:38:31 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-01-02 08:08:18 +01:00
|
|
|
#hexchat and heachat-text loads enchant spell checking library at run time and so it needs to have route to the path
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s,libenchant.so.1,${enchant}/lib/libenchant.so.1,g" src/fe-gtk/sexy-spell-entry.c
|
|
|
|
'';
|
|
|
|
|
2014-03-07 19:42:29 +01:00
|
|
|
configureFlags = [ "--enable-shm" "--enable-textfe" ];
|
|
|
|
|
2015-06-22 08:25:07 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-03-07 19:42:29 +01:00
|
|
|
description = "A popular and easy to use graphical IRC (chat) client";
|
|
|
|
homepage = http://hexchat.github.io/;
|
2015-06-22 08:25:07 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo jgeerds ];
|
2014-03-07 19:42:29 +01:00
|
|
|
};
|
|
|
|
}
|