about summary refs log tree commit diff
path: root/pkgs/tools/networking/redir/default.nix
blob: 1fcb73e00dc464904ee10cae14c53bd7fce53860 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "redir-2.2.1";

  src = fetchurl {
    url = "http://sammy.net/~sammy/hacks/${name}.tar.gz";
    sha256 = "0v0f14br00rrmd1ss644adsby4gm29sn7a2ccy7l93ik6pw099by";
  };

  installPhase = ''
    mkdir -p $out/bin
    cp redir $out/bin
  '';

  meta = {
    description = "A port redirector";
    homepage = http://sammy.net/~sammy/hacks/;
    license = stdenv.lib.licenses.gpl2;
    maintainers = with stdenv.lib.maintainers; [ globin ];
    platforms = stdenv.lib.platforms.linux;
  };
}