From 1cfdb5c81693d8ba1e4647fac105ba5cc2fa7ba5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 22 Apr 2024 08:02:45 +0200 Subject: [PATCH] chirpstack-rest-api: init at 4.9.0 --- .../ch/chirpstack-rest-api/package.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ch/chirpstack-rest-api/package.nix diff --git a/pkgs/by-name/ch/chirpstack-rest-api/package.nix b/pkgs/by-name/ch/chirpstack-rest-api/package.nix new file mode 100644 index 000000000000..79d68a1c770c --- /dev/null +++ b/pkgs/by-name/ch/chirpstack-rest-api/package.nix @@ -0,0 +1,34 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: +buildGoModule rec { + pname = "chirpstack-rest-api"; + version = "4.10.1"; + + src = fetchFromGitHub { + owner = "chirpstack"; + repo = "chirpstack-rest-api"; + rev = "v${version}"; + hash = "sha256-Rqxayn5vcCsvdztfElhRrdxxO3l5SgtckmWQMYey9MA="; + }; + + vendorHash = "sha256-7Qcd7AQjIdp5j7/i7wEZslMiOR5/rJ0HGbo8o7Q035U="; + + ldflags = [ + "-s" + "-w" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "gRPC API to REST proxy for Chirpstack"; + homepage = "https://www.chirpstack.io/"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.stv0g ]; + mainProgram = "chirpstack-rest-api"; + }; +}