3
0
Fork 0
forked from mirrors/nixpkgs

redir: 2.2.1 -> 3.1

This commit is contained in:
Robin Gloster 2017-02-02 18:54:10 +01:00
parent a0aacdd199
commit 8821ef9dc5
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -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;