Merge pull request #244974 from NyCodeGHG/pkg/pgrok
pgrok: init at 1.3.3
This commit is contained in:
commit
48f8e39bfb
|
@ -10283,6 +10283,13 @@
|
||||||
githubId = 105451387;
|
githubId = 105451387;
|
||||||
name = "Maria";
|
name = "Maria";
|
||||||
};
|
};
|
||||||
|
marie = {
|
||||||
|
email = "tabmeier12+nix@gmail.com";
|
||||||
|
github = "nycodeghg";
|
||||||
|
githubId = 37078297;
|
||||||
|
matrix = "@marie:marie.cologne";
|
||||||
|
name = "Marie Ramlow";
|
||||||
|
};
|
||||||
marijanp = {
|
marijanp = {
|
||||||
name = "Marijan Petričević";
|
name = "Marijan Petričević";
|
||||||
email = "marijan.petricevic94@gmail.com";
|
email = "marijan.petricevic94@gmail.com";
|
||||||
|
|
41
pkgs/tools/networking/pgrok/default.nix
Normal file
41
pkgs/tools/networking/pgrok/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -28206,6 +28206,8 @@ with pkgs;
|
||||||
|
|
||||||
perf-tools = callPackage ../os-specific/linux/perf-tools { };
|
perf-tools = callPackage ../os-specific/linux/perf-tools { };
|
||||||
|
|
||||||
|
pgrok = callPackage ../tools/networking/pgrok { };
|
||||||
|
|
||||||
picoprobe-udev-rules = callPackage ../os-specific/linux/picoprobe-udev-rules { };
|
picoprobe-udev-rules = callPackage ../os-specific/linux/picoprobe-udev-rules { };
|
||||||
|
|
||||||
pipes = callPackage ../misc/screensavers/pipes { };
|
pipes = callPackage ../misc/screensavers/pipes { };
|
||||||
|
|
Loading…
Reference in a new issue