From 4344d8e575f20c76d28eef23d3032b5123832257 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 22 Apr 2024 08:01:53 +0200 Subject: [PATCH] chirpstack-fuota-server: init at 3.0.0-test.4-unstable-2024-04-02 --- .../ch/chirpstack-fuota-server/package.nix | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/ch/chirpstack-fuota-server/package.nix diff --git a/pkgs/by-name/ch/chirpstack-fuota-server/package.nix b/pkgs/by-name/ch/chirpstack-fuota-server/package.nix new file mode 100644 index 000000000000..d811b76c08c1 --- /dev/null +++ b/pkgs/by-name/ch/chirpstack-fuota-server/package.nix @@ -0,0 +1,46 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: +buildGoModule rec { + pname = "chirpstack-fuota-server"; + version = "3.0.0-test.4-unstable-2024-04-02"; + + src = fetchFromGitHub { + owner = "chirpstack"; + repo = "chirpstack-fuota-server"; + rev = "6e014688cb4b2a5dc658bf7876df69a1cf3e2176"; + hash = "sha256-ShpBUnDGaW8vbt5y1wZbedwFHPJaggPuij71l2p0a6o="; + }; + + vendorHash = "sha256-dTmHkauFelqMo5MpB/TyK5yVax5d4/+g9twjmsRG3e0="; + + ldflags = [ + "-s" + "-w" + "-X main.version=${version}" + ]; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + doInstallCheck = true; + versionCheckProgramArg = "version"; + + checkFlags = [ + "-skip=TestStorage" # Depends on external database server + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "FUOTA server which can be used together with ChirpStack Application Server"; + homepage = "https://www.chirpstack.io/"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.stv0g ]; + mainProgram = "chirpstack-fuota-server"; + }; +}