nixpkgs/pkgs/tools/networking/pwnat/default.nix

29 lines
734 B
Nix
Raw Normal View History

2016-09-08 00:51:51 +02:00
{ stdenv, fetchFromGitHub }:
2013-05-08 22:42:45 +02:00
2013-05-09 13:21:10 +02:00
stdenv.mkDerivation rec {
2016-09-08 00:51:51 +02:00
name = "${pname}-${date}";
pname = "pwnat";
date = "2014-09-08";
2013-05-08 22:42:45 +02:00
2016-09-08 00:51:51 +02:00
src = fetchFromGitHub {
owner = "samyk";
repo = pname;
rev = "1d07c2eb53171733831c0cd01e4e96a3204ec446";
sha256 = "056xhlnf1axa6k90i018xwijkwc9zc7fms35hrkzwgs40g9ybrx5";
2013-05-08 22:42:45 +02:00
};
installPhase = ''
2013-05-09 13:21:10 +02:00
mkdir -p $out/bin $out/share/pwnat
2013-05-08 22:42:45 +02:00
cp pwnat $out/bin
cp README* COPYING* $out/share/pwnat
'';
2016-09-08 00:51:51 +02:00
meta = with stdenv.lib; {
homepage = http://samy.pl/pwnat/;
2013-05-08 22:42:45 +02:00
description = "ICMP NAT to NAT client-server communication";
2016-09-08 00:51:51 +02:00
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with maintainers; [viric];
platforms = with platforms; linux;
};
2013-05-08 22:42:45 +02:00
}