From c7fb03ad0ac2b3a09f7983ec35f5236a595283d5 Mon Sep 17 00:00:00 2001 From: Casey Link Date: Mon, 25 Mar 2024 15:48:49 +0100 Subject: [PATCH] hacompanion: init at 1.0.11 --- pkgs/by-name/ha/hacompanion/package.nix | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/by-name/ha/hacompanion/package.nix diff --git a/pkgs/by-name/ha/hacompanion/package.nix b/pkgs/by-name/ha/hacompanion/package.nix new file mode 100644 index 000000000000..dbf8be29cb46 --- /dev/null +++ b/pkgs/by-name/ha/hacompanion/package.nix @@ -0,0 +1,27 @@ +{ lib, + fetchFromGitHub, + buildGoModule +}: + +buildGoModule rec { + pname = "hacompanion"; + version = "1.0.11"; + + src = fetchFromGitHub { + owner = "tobias-kuendig"; + repo = "hacompanion"; + rev = "v${version}"; + hash = "sha256-gTsA5XBjLlm/cITwQwYNudPK9SbSEaiAIjjdvRS3+8Q="; + }; + + vendorHash = "sha256-ZZ8nxN+zUeFhSXyoHLMgzeFllnIkKdoVnbVK5KjrLEQ="; + + meta = { + changelog = "https://github.com/tobias-kuendig/hacompanion/releases/tag/v${version}"; + description = "Daemon that sends local hardware information to Home Assistant"; + homepage = "https://github.com/tobias-kuendig/hacompanion"; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ ramblurr ]; + }; +}