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