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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
971 B
Nix
Raw Normal View History

2023-06-16 08:11:10 +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
pname = "pwnat";
2023-06-16 08:11:10 +00:00
# Latest release has an annoying segmentation fault bug, see:
# https://github.com/samyk/pwnat/pull/25 . Merging only #25 is impossible due
# to major code refactoring.
version = "2023-03-31";
2013-05-08 20:42:45 +00:00
2016-09-07 22:51:51 +00:00
src = fetchFromGitHub {
owner = "samyk";
repo = pname;
2023-06-16 08:11:10 +00:00
rev = "8ec62cdae53a2d573c9f9c906133ca45bbd3360a";
sha256 = "sha256-QodNw3ab8/TurKamg6AgMfQ08aalp4j6q663B+sWmRM=";
2013-05-08 20:42:45 +00:00
};
2023-06-16 08:11:10 +00:00
# See https://github.com/samyk/pwnat/issues/28
preBuild = ''
mkdir obj
'';
2013-05-08 20:42:45 +00:00
installPhase = ''
2023-06-16 08:11:10 +00:00
runHook preInstall
install -D pwnat $out/bin/pwnat
runHook postInstall
2013-05-08 20:42:45 +00:00
'';
meta = with lib; {
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;
2024-02-11 02:19:15 +00:00
mainProgram = "pwnat";
};
2013-05-08 20:42:45 +00:00
}