2017-01-24 12:53:58 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, gtk2, lua, perl, python
|
2016-09-11 22:24:51 +01:00
|
|
|
, libtool, pciutils, dbus_glib, libcanberra_gtk2, libproxy
|
2015-06-22 11:28:28 +01:00
|
|
|
, libsexy, enchant, libnotify, openssl, intltool
|
2014-03-07 18:42:29 +00:00
|
|
|
, desktop_file_utils, hicolor_icon_theme
|
2017-01-24 12:53:58 +00:00
|
|
|
, autoconf, automake, autoconf-archive
|
2014-03-07 18:42:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-24 12:53:58 +00:00
|
|
|
version = "2.12.4";
|
2014-03-07 18:42:29 +00:00
|
|
|
name = "hexchat-${version}";
|
|
|
|
|
2017-01-24 12:53:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hexchat";
|
|
|
|
repo = "hexchat";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1z8v7jg1mc2277k3jihnq4rixw1q27305aw6b6rpb1x7vpiy2zr3";
|
2014-03-07 18:42:29 +00:00
|
|
|
};
|
|
|
|
|
2016-05-09 11:38:31 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig libtool intltool
|
2017-01-24 12:53:58 +00:00
|
|
|
autoconf autoconf-archive automake
|
2016-05-09 11:38:31 +01:00
|
|
|
];
|
|
|
|
|
2014-03-07 18:42:29 +00:00
|
|
|
buildInputs = [
|
2016-09-11 22:24:51 +01:00
|
|
|
gtk2 lua perl python pciutils dbus_glib libcanberra_gtk2 libproxy
|
2016-05-09 11:38:31 +01:00
|
|
|
libsexy libnotify openssl desktop_file_utils hicolor_icon_theme
|
2014-03-07 18:42:29 +00:00
|
|
|
];
|
|
|
|
|
2016-05-09 11:38:31 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-01-24 12:53:58 +00:00
|
|
|
#hexchat and heachat-text loads enchant spell checking library at run time and so it needs to have route to the path
|
2016-01-02 07:08:18 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s,libenchant.so.1,${enchant}/lib/libenchant.so.1,g" src/fe-gtk/sexy-spell-entry.c
|
|
|
|
'';
|
|
|
|
|
2017-01-24 12:53:58 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2014-03-07 18:42:29 +00:00
|
|
|
configureFlags = [ "--enable-shm" "--enable-textfe" ];
|
|
|
|
|
2015-06-22 07:25:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-03-07 18:42:29 +00:00
|
|
|
description = "A popular and easy to use graphical IRC (chat) client";
|
|
|
|
homepage = http://hexchat.github.io/;
|
2015-06-22 07:25:07 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo jgeerds ];
|
2014-03-07 18:42:29 +00:00
|
|
|
};
|
|
|
|
}
|