nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit c2202dcf803e626e9e2975239cc4918e7dafae42
parent 94dc09aababfdfe447281586a27e2a3376bc30bd
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 25 Jul 2024 21:18:13 +0400

Add tiny-frpc

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/tiny-frpc/default.nix | 33+++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -393,6 +393,7 @@ lib.makeScope newScope ( telegram-send = callPackage ./misc/telegram-send { }; telnetpp = callPackage ./misc/telnetpp { }; terminalpp = callPackage ./misc/terminalpp { }; + tiny-frpc = callPackage ./misc/tiny-frpc { }; tinyflux = callPackage ./misc/tinyflux { }; tlstunnel = callPackage ./misc/tlstunnel { }; turbo = callPackage ./misc/turbo { }; diff --git a/pkgs/misc/tiny-frpc/default.nix b/pkgs/misc/tiny-frpc/default.nix @@ -0,0 +1,33 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "tiny-frpc"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "gofrp"; + repo = "tiny-frpc"; + rev = "v${version}"; + sha256 = "sha256-vrIkSacqjt3lG5LaOXV1m3NI+j0KLFOTV/P5OacwrcU="; + }; + + vendorHash = "sha256-RbqMuLMSIrQQLDXh79hik5+IPqoYa4oXx01ouQYCpgc="; + + ldflags = [ + "-s" + "-w" + ]; + + meta = { + description = "tiny frpc using ssh protocol with frps"; + homepage = "https://github.com/gofrp/tiny-frpc"; + changelog = "https://github.com/gofrp/tiny-frpc/blob/v${version}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sikmir ]; + mainProgram = "tiny-frpc"; + }; +}