1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/pkgs/tools/networking/pwnat/default.nix
2021-01-15 17:12:36 +07:00

29 lines
727 B
Nix

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