summary refs log tree commit diff
path: root/pkgs/tools/networking/pwnat/default.nix
blob: 2e79e9919da5e6ce85e41d30be81fb4172b967ac (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
24
{ stdenv, fetchurl }:

stdenv.mkDerivation {
  name = "pwnat-0.3-beta";

  src = fetchurl {
    url = "http://samy.pl/pwnat/${name}.tgz";
    sha256 = "18ihs6wk7zni2w0pqip7i61hyi6n60v5rgj6z7j543fgy4afmmnm";
  };

  installPhase = ''
    ensureDir $out/bin $out/share/pwnat
    cp pwnat $out/bin
    cp README* COPYING* $out/share/pwnat
  '';

  meta = {
    homepage = http://samy.pl/pwnat/;
    description = "ICMP NAT to NAT client-server communication";
    license = "GPLv3+";
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  }
}