nixpkgs/pkgs/by-name/he/hexchat/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

91 lines
1.9 KiB
Nix
Raw Normal View History

2024-07-08 21:12:25 +00:00
{
2024-07-08 21:15:11 +00:00
dbus-glib,
desktop-file-utils,
enchant2,
2024-07-08 21:12:25 +00:00
fetchFromGitHub,
gtk2,
2024-07-08 21:15:11 +00:00
isocodes,
lib,
2024-07-08 21:12:25 +00:00
libcanberra-gtk2,
libnotify,
2024-07-08 21:15:11 +00:00
libproxy,
lua,
makeWrapper,
2024-07-08 21:12:25 +00:00
meson,
ninja,
2024-07-08 21:15:11 +00:00
openssl,
pciutils,
perl,
pkg-config,
python3Packages,
stdenv,
2014-03-07 18:42:29 +00:00
}:
stdenv.mkDerivation rec {
pname = "hexchat";
2024-02-08 04:51:56 +00:00
version = "2.16.2";
2014-03-07 18:42:29 +00:00
src = fetchFromGitHub {
owner = "hexchat";
repo = "hexchat";
rev = "v${version}";
2024-07-08 21:11:48 +00:00
hash = "sha256-rgaXqXbBWlfSyz+CT0jRLyfGOR1cYYnRhEAu7AsaWus=";
2014-03-07 18:42:29 +00:00
};
2024-07-08 21:17:44 +00: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 \
plugins/perl/generate_header.py \
plugins/python/generate_plugin.py \
po/validate-textevent-translations \
src/common/make-te.py
do
patchShebangs $f
done
'';
mesonFlags = [
"-Dwith-lua=lua"
"-Dtext-frontend=true"
];
2024-07-08 21:12:25 +00:00
nativeBuildInputs = [
2024-07-08 21:15:11 +00:00
makeWrapper
2024-07-08 21:12:25 +00:00
meson
ninja
pkg-config
];
2016-05-09 10:38:31 +00:00
2014-03-07 18:42:29 +00:00
buildInputs = [
2024-07-08 21:12:25 +00:00
dbus-glib
2024-07-08 21:15:11 +00:00
desktop-file-utils
gtk2
isocodes
2024-07-08 21:12:25 +00:00
libcanberra-gtk2
libnotify
2024-07-08 21:15:11 +00:00
libproxy
lua
2024-07-08 21:12:25 +00:00
openssl
2024-07-08 21:15:11 +00:00
pciutils
perl
python3Packages.cffi
python3Packages.python
2024-07-08 21:11:31 +00:00
python3Packages.setuptools
2014-03-07 18:42:29 +00:00
];
2021-10-13 15:40:42 +00:00
postInstall = ''
wrapProgram $out/bin/hexchat --prefix PYTHONPATH : "$PYTHONPATH"
'';
2024-07-08 21:12:51 +00:00
meta = {
2014-03-07 18:42:29 +00:00
description = "Popular and easy to use graphical IRC (chat) client";
homepage = "https://hexchat.github.io/";
2024-07-08 21:12:51 +00:00
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ romildo ];
2014-03-07 18:42:29 +00:00
};
}