diff --git a/pkgs/applications/networking/instant-messengers/freetalk/default.nix b/pkgs/applications/networking/instant-messengers/freetalk/default.nix index 01707dd1ff32..ca8d7f2076ec 100644 --- a/pkgs/applications/networking/instant-messengers/freetalk/default.nix +++ b/pkgs/applications/networking/instant-messengers/freetalk/default.nix @@ -1,42 +1,35 @@ -{ stdenv, fetchgit +{ stdenv, fetchFromGitHub , guile, pkgconfig, glib, loudmouth, gmp, libidn, readline, libtool , libunwind, ncurses, curl, jansson, texinfo , automake, autoconf }: -let - s = rec { - baseName="freetalk"; - version="4.0rc6"; - name="${baseName}-${version}"; - url="https://github.com/GNUFreetalk/freetalk"; - rev = "refs/tags/v${version}"; - sha256="1wr3q40f4gwmr0vm6w07d5vzr65q6llk9xxq75klpcj83va5l3xv"; +stdenv.mkDerivation rec { + name = "freetalk-${version}"; + version = "4.1"; + + src = fetchFromGitHub { + owner = "GNUFreetalk"; + repo = "freetalk"; + rev = "v${version}"; + sha256 = "09jwk2i8qd8c7wrn9xbqcwm32720dwxis22kf3jpbg8mn6w6i757"; }; - buildInputs = [ + + preConfigure = '' + ./autogen.sh + ''; + + buildInputs = [ guile pkgconfig glib loudmouth gmp libidn readline libtool libunwind ncurses curl jansson texinfo autoconf automake ]; -in -stdenv.mkDerivation { - inherit (s) name version; - inherit buildInputs; - src = fetchgit { - inherit (s) url rev sha256; - }; - preConfigure = '' - patchShebangs . - ./autogen.sh - ''; - - meta = { - inherit (s) version; + meta = with stdenv.lib; { description = "Console XMPP client"; - license = stdenv.lib.licenses.gpl3Plus ; - maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.linux; + license = licenses.gpl3Plus ; + maintainers = with maintainers; [ raskin ]; + platforms = platforms.linux; downloadPage = "http://www.gnu.org/software/freetalk/"; }; }