1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/pwnat/default.nix

29 lines
736 B
Nix
Raw Normal View History

2016-09-07 23:51:51 +01:00
{ 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
'';
2016-09-07 23:51:51 +01:00
meta = with stdenv.lib; {
homepage = "http://samy.pl/pwnat/";
2013-05-08 21:42:45 +01:00
description = "ICMP NAT to NAT client-server communication";
2016-09-07 23:51:51 +01:00
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with maintainers; [viric];
platforms = with platforms; linux;
};
2013-05-08 21:42:45 +01:00
}