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

29 lines
727 B
Nix
Raw Normal View History

{ 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
'';
meta = with lib; {
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:42:45 +01:00
}