3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/irc/hexchat/default.nix
2016-10-18 20:19:27 +02:00

42 lines
1.2 KiB
Nix

{ stdenv, fetchurl, pkgconfig, gtk2, lua, perl, python
, libtool, pciutils, dbus_glib, libcanberra_gtk2, libproxy
, libsexy, enchant, libnotify, openssl, intltool
, desktop_file_utils, hicolor_icon_theme
}:
stdenv.mkDerivation rec {
version = "2.12.2";
name = "hexchat-${version}";
src = fetchurl {
url = "http://dl.hexchat.net/hexchat/${name}.tar.xz";
sha256 = "1xnclfbrgbkqndxygi5f27q00jd7yy54jbd1061jmhxa6wzpibbd";
};
nativeBuildInputs = [
pkgconfig libtool intltool
];
buildInputs = [
gtk2 lua perl python pciutils dbus_glib libcanberra_gtk2 libproxy
libsexy libnotify openssl desktop_file_utils hicolor_icon_theme
];
enableParallelBuilding = true;
#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
'';
configureFlags = [ "--enable-shm" "--enable-textfe" ];
meta = with stdenv.lib; {
description = "A popular and easy to use graphical IRC (chat) client";
homepage = http://hexchat.github.io/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo jgeerds ];
};
}