summary refs log tree commit diff
diff options
context:
space:
mode:
authorromildo <malaquias@gmail.com>2017-01-24 10:53:58 -0200
committerromildo <malaquias@gmail.com>2017-01-24 11:00:41 -0200
commitfee579701d0868d8896513197580a4876a49ef5e (patch)
tree35a5e310d0437a98878aee7180d2a02c1d53ca75
parent1853f174d11040b3901e4c83d89f2578320a2e42 (diff)
downloadnixlib-fee579701d0868d8896513197580a4876a49ef5e.tar
nixlib-fee579701d0868d8896513197580a4876a49ef5e.tar.gz
nixlib-fee579701d0868d8896513197580a4876a49ef5e.tar.bz2
nixlib-fee579701d0868d8896513197580a4876a49ef5e.tar.lz
nixlib-fee579701d0868d8896513197580a4876a49ef5e.tar.xz
nixlib-fee579701d0868d8896513197580a4876a49ef5e.tar.zst
nixlib-fee579701d0868d8896513197580a4876a49ef5e.zip
hexchat: 2.12.3 -> 2.12.4
- Update hexchat to version 2.12.4
- Use sources from github, as the source at
http://dl.hexchat.net/hexchat/hexchat-2.12.4.tar.xz contains invalid symbolic
links in the directory 'build-aux'
- Run 'autogen.sh' to generate 'configure' and friends, as they are not
available in the distributed sources from github.
-rw-r--r--pkgs/applications/networking/irc/hexchat/default.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/pkgs/applications/networking/irc/hexchat/default.nix b/pkgs/applications/networking/irc/hexchat/default.nix
index 4d7ebbfac2e8..80eea8219be2 100644
--- a/pkgs/applications/networking/irc/hexchat/default.nix
+++ b/pkgs/applications/networking/irc/hexchat/default.nix
@@ -1,20 +1,24 @@
-{ stdenv, fetchurl, pkgconfig, gtk2, lua, perl, python
+{ stdenv, fetchFromGitHub, pkgconfig, gtk2, lua, perl, python
 , libtool, pciutils, dbus_glib, libcanberra_gtk2, libproxy
 , libsexy, enchant, libnotify, openssl, intltool
 , desktop_file_utils, hicolor_icon_theme
+, autoconf, automake, autoconf-archive
 }:
 
 stdenv.mkDerivation rec {
-  version = "2.12.3";
+  version = "2.12.4";
   name = "hexchat-${version}";
 
-  src = fetchurl {
-    url = "http://dl.hexchat.net/hexchat/${name}.tar.xz";
-    sha256 = "1fpj2kk1p85snffchqxsz3sphhcgiripjw41mgzxi7ks5hvj4avg";
+  src = fetchFromGitHub {
+    owner = "hexchat";
+    repo = "hexchat";
+    rev = "v${version}";
+    sha256 = "1z8v7jg1mc2277k3jihnq4rixw1q27305aw6b6rpb1x7vpiy2zr3";
   };
 
   nativeBuildInputs = [
     pkgconfig libtool intltool
+    autoconf autoconf-archive automake
   ];
 
   buildInputs = [
@@ -24,11 +28,15 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
- #hexchat and heachat-text loads enchant spell checking library at run time and so it needs to have route to the path
+  #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
   '';
 
+  preConfigure = ''
+    ./autogen.sh
+  '';
+
   configureFlags = [ "--enable-shm" "--enable-textfe" ];
 
   meta = with stdenv.lib; {