2019-08-31 05:06:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, gtk2, lua, perl, python3
|
|
|
|
, pciutils, dbus-glib, libcanberra-gtk2, libproxy
|
2019-11-26 21:09:44 +00:00
|
|
|
, enchant2, libnotify, openssl, isocodes
|
2019-09-12 15:25:05 +01:00
|
|
|
, desktop-file-utils
|
2019-08-31 05:06:40 +01:00
|
|
|
, meson, ninja
|
2014-03-07 18:42:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hexchat";
|
2020-01-27 19:04:01 +00:00
|
|
|
version = "2.14.3";
|
2014-03-07 18:42:29 +00:00
|
|
|
|
2017-01-24 12:53:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hexchat";
|
|
|
|
repo = "hexchat";
|
|
|
|
rev = "v${version}";
|
2020-01-27 19:04:01 +00:00
|
|
|
sha256 = "08kvp0dcn3bvmlqcfp9312075bwkqkpa8m7zybr88pfp210gfl85";
|
2014-03-07 18:42:29 +00:00
|
|
|
};
|
|
|
|
|
2019-08-31 05:06:40 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
2016-05-09 11:38:31 +01:00
|
|
|
|
2014-03-07 18:42:29 +00:00
|
|
|
buildInputs = [
|
2019-08-31 05:06:40 +01:00
|
|
|
gtk2 lua perl python3 pciutils dbus-glib libcanberra-gtk2 libproxy
|
2019-11-26 21:09:44 +00:00
|
|
|
libnotify openssl desktop-file-utils
|
2019-08-31 05:06:40 +01:00
|
|
|
isocodes
|
2014-03-07 18:42:29 +00:00
|
|
|
];
|
|
|
|
|
2019-08-31 05:06:40 +01:00
|
|
|
#hexchat and hexchat-text loads enchant spell checking library at run time and so it needs to have route to the path
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s,libenchant-2.so.2,${enchant2}/lib/libenchant-2.so.2,g" src/fe-gtk/sexy-spell-entry.c
|
|
|
|
sed -i "/flag.startswith('-I')/i if flag.contains('no-such-path')\ncontinue\nendif" plugins/perl/meson.build
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
for f in meson_post_install.py \
|
|
|
|
src/common/make-te.py \
|
|
|
|
plugins/perl/generate_header.py \
|
|
|
|
po/validate-textevent-translations
|
|
|
|
do
|
|
|
|
patchShebangs $f
|
|
|
|
done
|
2017-01-24 12:53:58 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-31 05:06:40 +01:00
|
|
|
mesonFlags = [ "-Dwith-lua=lua" "-Dwith-text=true" ];
|
2014-03-07 18:42:29 +00:00
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://hexchat.github.io/";
|
2015-06-22 07:25:07 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2014-03-07 18:42:29 +00:00
|
|
|
};
|
|
|
|
}
|