os-agent: init at 1.6.0

os-agent: update src and ldFlags

os-agent: add passthru scripts
This commit is contained in:
genga
2025-01-07 19:39:01 +03:00
parent f7c8b09122
commit 2b3db55d5a
+37
View File
@@ -0,0 +1,37 @@
{
lib,
fetchFromGitHub,
buildGoModule,
nix-update-script,
}:
buildGoModule rec {
pname = "os-agent";
version = "1.6.0";
src = fetchFromGitHub {
owner = "home-assistant";
repo = "os-agent";
tag = "${version}";
hash = "sha256-euBoRlgYtQmuYyIxD3yxbvXc4Zcke2JXGOlBmY0mRZU=";
};
vendorHash = "sha256-zWvvQsEBtGX2qa6HoG2sYv8q5fi/wM0eDQa8jLjh4+A=";
ldFlags = [
"-X main.version="
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Daemon allowing to control OS features through D-Bus";
homepage = "https://github.com/home-assistant/os-agent";
changelog = "https://github.com/home-assistant/os-agent/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "os-agent";
};
}