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