pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / pi / pingtunnel / package.nix
blobe91e12fba747e8a695d1639180547816d119966a
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "pingtunnel";
8   version = "2.8";
10   src = fetchFromGitHub {
11     owner = "esrrhs";
12     repo = "pingtunnel";
13     rev = version;
14     hash = "sha256-qkIeE6gNBUUd5/IhcKhDmXZbzeSTR0r6qCAK/Nz7Kew=";
15   };
17   vendorHash = "sha256-SkBHFvQn3Q6fl/d1npEspTYhq1YrnusXNWr/Ky4bv64=";
19   ldflags = [ "-s" "-w" ];
21   postInstall = ''
22     mv $out/bin/cmd $out/bin/pingtunnel
23   '';
25   meta = with lib; {
26     description = "Tool that send TCP/UDP traffic over ICMP";
27     homepage = "https://github.com/esrrhs/pingtunnel";
28     license = licenses.mit;
29     maintainers = with maintainers; [ oluceps ];
30     mainProgram = "pingtunnel";
31   };