pgrok: init at 1.3.3

This commit is contained in:
Marie Ramlow
2023-07-25 15:09:56 +02:00
parent 5f88e10c4d
commit d20b923e93
2 changed files with 43 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "pgrok";
version = "1.3.3";
src = fetchFromGitHub {
owner = "pgrok";
repo = "pgrok";
rev = "v${version}";
hash = "sha256-0b7d3wyhRuTxZmpx9oJnZN88yYn+TsR82KrktPAx9P4=";
};
vendorHash = "sha256-laSfyHFkJJkv4EPMIVcai7RXaGIpUp+0tOpt5vhcLkA=";
outputs = [ "out" "server" ];
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=unknown"
"-X main.date=unknown"
];
postInstall = ''
moveToOutput bin/pgrokd $server
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Selfhosted TCP/HTTP tunnel, ngrok alternative, written in Go";
homepage = "https://github.com/pgrok/pgrok";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ marie ];
};
}
+2
View File
@@ -28158,6 +28158,8 @@ with pkgs;
perf-tools = callPackage ../os-specific/linux/perf-tools { };
pgrok = callPackage ../tools/networking/pgrok { };
picoprobe-udev-rules = callPackage ../os-specific/linux/picoprobe-udev-rules { };
pipes = callPackage ../misc/screensavers/pipes { };