mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
newt-go: init at 1.1.3
Tunneling client for Pangolin https://github.com/fosrl/newt
This commit is contained in:
parent
616e381988
commit
3aa3566fca
1 changed files with 45 additions and 0 deletions
45
pkgs/by-name/ne/newt-go/package.nix
Normal file
45
pkgs/by-name/ne/newt-go/package.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
versionCheckHook,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "newt";
|
||||||
|
version = "1.1.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fosrl";
|
||||||
|
repo = "newt";
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-wfm2UI4QUiYiAJIYBiSCOD/w72WRJIv2cyLIkfqGsek=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-8VlT9cy2uNhQPiUpr1jJuQSgUR6TtlbQ+etran2Htxs=";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace main.go \
|
||||||
|
--replace-fail "replaceme" "${version}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
];
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
versionCheckProgramArg = [ "-version" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Tunneling client for Pangolin";
|
||||||
|
homepage = "https://github.com/fosrl/newt";
|
||||||
|
changelog = "https://github.com/fosrl/newt/releases/tag/${src.tag}";
|
||||||
|
license = lib.licenses.agpl3Only;
|
||||||
|
maintainers = with lib.maintainers; [ fab ];
|
||||||
|
mainProgram = "newt";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue