Merge pull request #244974 from NyCodeGHG/pkg/pgrok

pgrok: init at 1.3.3
This commit is contained in:
Pol Dellaiera 2023-07-30 23:06:24 +02:00 committed by GitHub
commit 48f8e39bfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

View file

@ -10283,6 +10283,13 @@
githubId = 105451387;
name = "Maria";
};
marie = {
email = "tabmeier12+nix@gmail.com";
github = "nycodeghg";
githubId = 37078297;
matrix = "@marie:marie.cologne";
name = "Marie Ramlow";
};
marijanp = {
name = "Marijan Petričević";
email = "marijan.petricevic94@gmail.com";

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 ];
};
}

View file

@ -28206,6 +28206,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 { };