depot/pkgs/tools/networking/frp/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 lines
1,002 B
Nix

{ buildGoModule, lib, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "frp";
version = "0.61.0";
src = fetchFromGitHub {
owner = "fatedier";
repo = pname;
rev = "v${version}";
hash = "sha256-ZanHYU7UEPsI/KAygxcTszUB4emnrrqxiuuLsCVk+cM=";
};
vendorHash = "sha256-ySONxi45Ckq0y4BNyTcm8s6KcnXW+k6thqL7qh6mbBc=";
doCheck = false;
subPackages = [ "cmd/frpc" "cmd/frps" ];
passthru.tests = {
frp = nixosTests.frp;
};
meta = with lib; {
description = "Fast reverse proxy";
longDescription = ''
frp is a fast reverse proxy to help you expose a local server behind a
NAT or firewall to the Internet. As of now, it supports TCP and UDP, as
well as HTTP and HTTPS protocols, where requests can be forwarded to
internal services by domain name. frp also has a P2P connect mode.
'';
homepage = "https://github.com/fatedier/frp";
license = licenses.asl20;
maintainers = with maintainers; [ Br1ght0ne ];
};
}