From 2bf63ea403f710d270f9f5f16f6f568f0c00ffbe Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 4 Jun 2026 16:37:43 +0200 Subject: [PATCH] reticulum-go: init at 0.9.5 --- pkgs/by-name/re/reticulum-go/package.nix | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/re/reticulum-go/package.nix diff --git a/pkgs/by-name/re/reticulum-go/package.nix b/pkgs/by-name/re/reticulum-go/package.nix new file mode 100644 index 000000000000..0b5c456d1b26 --- /dev/null +++ b/pkgs/by-name/re/reticulum-go/package.nix @@ -0,0 +1,42 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "reticulum-go"; + version = "0.9.5"; + strictDeps = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "Quad4-Software"; + repo = "Reticulum-Go"; + tag = "v${finalAttrs.version}"; + hash = "sha256-LszknSPyZRE/uGy5jSmKAmi+oBargjN+AgbT8QJ3hug="; + }; + + vendorHash = null; + + subPackages = [ "cmd/reticulum-go" ]; + + ldflags = [ + "-s" + "-w" + ]; + + # Required for some tests on darwin. + __darwinAllowLocalNetworking = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + changelog = "https://github.com/Quad4-Software/Reticulum-Go/releases/tag/${finalAttrs.src.tag}"; + description = "High-performance Go implementation of the Reticulum Network Stack"; + homepage = "https://github.com/Quad4-Software/Reticulum-Go"; + license = lib.licenses.asl20; + mainProgram = "reticulum-go"; + }; +})