nixpkgs/pkgs/applications/networking/irc/hexchat/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

2017-02-08 18:31:35 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, gtk2, lua, perl, python2
, libtool, pciutils, dbus-glib, libcanberra-gtk2, libproxy
, libsexy, enchant1, libnotify, openssl, intltool
, desktop-file-utils, hicolor-icon-theme
, autoconf, automake, autoconf-archive
2014-03-07 18:42:29 +00:00
}:
stdenv.mkDerivation rec {
version = "2.12.4";
2014-03-07 18:42:29 +00:00
name = "hexchat-${version}";
src = fetchFromGitHub {
owner = "hexchat";
repo = "hexchat";
rev = "v${version}";
sha256 = "1z8v7jg1mc2277k3jihnq4rixw1q27305aw6b6rpb1x7vpiy2zr3";
2014-03-07 18:42:29 +00:00
};
2016-05-09 10:38:31 +00:00
nativeBuildInputs = [
pkgconfig libtool intltool
autoconf autoconf-archive automake
2016-05-09 10:38:31 +00:00
];
2014-03-07 18:42:29 +00:00
buildInputs = [
gtk2 lua perl python2 pciutils dbus-glib libcanberra-gtk2 libproxy
libsexy libnotify openssl desktop-file-utils hicolor-icon-theme
2014-03-07 18:42:29 +00:00
];
2016-05-09 10:38:31 +00:00
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,${enchant1}/lib/libenchant.so.1,g" src/fe-gtk/sexy-spell-entry.c
'';
preConfigure = ''
./autogen.sh
'';
2014-03-07 18:42:29 +00:00
configureFlags = [ "--enable-shm" "--enable-textfe" ];
2015-06-22 06:25:07 +00: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 = https://hexchat.github.io/;
2015-06-22 06:25:07 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
2014-03-07 18:42:29 +00:00
};
}