nixpkgs/pkgs/servers/home-assistant/custom-components/prometheus_sensor/package.nix
Zhong Jianxin 08eee7bd7a home-assistant-custom-components.*: make use of lib.packagesFromDirectoryRecursive
So we don't need to manually maintain `pkgs/servers/home-assistant/custom-components/default.nix` anymore
2024-10-21 20:56:43 +08:00

28 lines
719 B
Nix

{ lib
, fetchFromGitHub
, buildHomeAssistantComponent
}:
buildHomeAssistantComponent rec {
owner = "mweinelt";
domain = "prometheus_sensor";
version = "1.1.0";
src = fetchFromGitHub {
owner = "mweinelt";
repo = "ha-prometheus-sensor";
rev = "refs/tags/${version}";
hash = "sha256-xfLAfTBgJjrRU1EFcbRvzUSq4m+dd6izaxP9DMisz/0=";
};
dontBuild = true;
meta = with lib; {
changelog = "https://github.com/mweinelt/ha-prometheus-sensor/blob/${version}/CHANGELOG.md";
description = "Import prometheus query results into Home Assistant";
homepage = "https://github.com/mweinelt/ha-prometheus-sensor";
maintainers = with maintainers; [ hexa ];
license = licenses.mit;
};
}