hexchat: 2.12.4 -> 2.14.2 (#67714)
This commit is contained in:
parent
1a4903aa05
commit
60216e8472
@ -1,43 +1,52 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, gtk2, lua, perl, python2
|
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, gtk2, lua, perl, python3
|
||||||
, libtool, pciutils, dbus-glib, libcanberra-gtk2, libproxy
|
, pciutils, dbus-glib, libcanberra-gtk2, libproxy
|
||||||
, libsexy, enchant1, libnotify, openssl, intltool
|
, libsexy, enchant2, libnotify, openssl, isocodes
|
||||||
, desktop-file-utils, hicolor-icon-theme
|
, desktop-file-utils, hicolor-icon-theme
|
||||||
, autoconf, automake, autoconf-archive
|
, meson, ninja
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.12.4";
|
version = "2.14.2";
|
||||||
name = "hexchat-${version}";
|
pname = "hexchat";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hexchat";
|
owner = "hexchat";
|
||||||
repo = "hexchat";
|
repo = "hexchat";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1z8v7jg1mc2277k3jihnq4rixw1q27305aw6b6rpb1x7vpiy2zr3";
|
sha256 = "1kz81xfis0bw2cfd6ndw32jdzdl5azk9ixqj4a3lginmlj6fs45a";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
||||||
pkgconfig libtool intltool
|
|
||||||
autoconf autoconf-archive automake
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk2 lua perl python2 pciutils dbus-glib libcanberra-gtk2 libproxy
|
gtk2 lua perl python3 pciutils dbus-glib libcanberra-gtk2 libproxy
|
||||||
libsexy libnotify openssl desktop-file-utils hicolor-icon-theme
|
libsexy libnotify openssl desktop-file-utils hicolor-icon-theme
|
||||||
|
isocodes
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
patches = [
|
||||||
|
#https://github.com/hexchat/hexchat/issues/2237
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://src.fedoraproject.org/rpms/hexchat/raw/8a08a0c8a8da503b18f2fbb15194c5f3728a689a/f/0001-Python-plugin-Call-EndInterpreter-when-deinit-ing-th.patch";
|
||||||
|
sha256 = "1199dj3wvjqj6h5vlm7lzhaax84j9ki6an8y8fs4rww27iq0lk8g";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
#hexchat and heachat-text loads enchant spell checking library at run time and so it needs to have route to the path
|
#hexchat and hexchat-text loads enchant spell checking library at run time and so it needs to have route to the path
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
sed -i "s,libenchant.so.1,${enchant1}/lib/libenchant.so.1,g" src/fe-gtk/sexy-spell-entry.c
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
mesonFlags = [ "-Dwith-lua=lua" "-Dwith-text=true" ];
|
||||||
./autogen.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [ "--enable-shm" "--enable-textfe" ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A popular and easy to use graphical IRC (chat) client";
|
description = "A popular and easy to use graphical IRC (chat) client";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user