diff --git a/pkgs/applications/networking/gopher/gopher/default.nix b/pkgs/applications/networking/gopher/gopher/default.nix index 4fcdf55777a6..f90e35ca7e2e 100644 --- a/pkgs/applications/networking/gopher/gopher/default.nix +++ b/pkgs/applications/networking/gopher/gopher/default.nix @@ -1,23 +1,25 @@ -{stdenv, fetchurl, ncurses}: +{ stdenv, fetchFromGitHub, ncurses }: stdenv.mkDerivation rec { pname = "gopher"; - version = "3.0.11"; + version = "3.0.17"; - src = fetchurl { - url = "http://gopher.quux.org:70/devel/gopher/Downloads/gopher_${version}.tar.gz"; - sha256 = "15r7x518wlpfqpd6z0hbdwm8rw8ll8hbpskdqgxxhrmy00aa7w9c"; + src = fetchFromGitHub { + owner = "jgoerzen"; + repo = pname; + rev = "release/${version}"; + sha256 = "1j6xh5l8v231d4mwl9gj1c34dc0jmazz6zg1qqfxmqr9y609jq3h"; }; buildInputs = [ ncurses ]; preConfigure = "export LIBS=-lncurses"; - meta = { + meta = with stdenv.lib; { homepage = http://gopher.quux.org:70/devel/gopher; description = "A ncurses gopher client"; - platforms = stdenv.lib.platforms.unix; - license = stdenv.lib.licenses.gpl2; - maintainers = with stdenv.lib.maintainers; [ sternenseemann ]; + platforms = platforms.linux; # clang doesn't like local regex.h + license = licenses.gpl2; + maintainers = with maintainers; [ sternenseemann ]; }; }