diff options
author | Robin Gloster <mail@glob.in> | 2017-02-02 18:54:10 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-02-02 18:59:07 +0100 |
commit | 8821ef9dc5b558da7a4385c17c4676f0e861ccfe (patch) | |
tree | 8e34a27d1979c0f48355ac83d3884653531ee353 /pkgs/tools/networking/redir/default.nix | |
parent | a0aacdd199224df43aafc6f8f7e495b26c147f7b (diff) |
redir: 2.2.1 -> 3.1
Diffstat (limited to 'pkgs/tools/networking/redir/default.nix')
-rw-r--r-- | pkgs/tools/networking/redir/default.nix | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/tools/networking/redir/default.nix b/pkgs/tools/networking/redir/default.nix index 1fcb73e00dc46..620e8d3dbba0b 100644 --- a/pkgs/tools/networking/redir/default.nix +++ b/pkgs/tools/networking/redir/default.nix @@ -1,21 +1,21 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchFromGitHub, autoreconfHook }: stdenv.mkDerivation rec { - name = "redir-2.2.1"; + name = "redir-${version}"; + version = "3.1"; - src = fetchurl { - url = "http://sammy.net/~sammy/hacks/${name}.tar.gz"; - sha256 = "0v0f14br00rrmd1ss644adsby4gm29sn7a2ccy7l93ik6pw099by"; + src = fetchFromGitHub { + owner = "troglobit"; + repo = "redir"; + rev = "v${version}"; + sha256 = "1m05dchi15bzz9zfdb7jg59624sx4khp5zq0wf4pzr31s64f69cx"; }; - installPhase = '' - mkdir -p $out/bin - cp redir $out/bin - ''; + nativeBuildInputs = [ autoreconfHook ]; meta = { - description = "A port redirector"; - homepage = http://sammy.net/~sammy/hacks/; + description = "A TCP port redirector for UNIX"; + homepage = "https://github.com/troglobit/redir"; license = stdenv.lib.licenses.gpl2; maintainers = with stdenv.lib.maintainers; [ globin ]; platforms = stdenv.lib.platforms.linux; |