27 lines
688 B
Nix
27 lines
688 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchFromGitHub,
|
||
|
|
buildHomeAssistantComponent,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildHomeAssistantComponent rec {
|
||
|
|
owner = "mweinelt";
|
||
|
|
domain = "prometheus_sensor";
|
||
|
|
version = "1.1.3";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "mweinelt";
|
||
|
|
repo = "ha-prometheus-sensor";
|
||
|
|
tag = version;
|
||
|
|
hash = "sha256-d13KJXgRPWrR2ilpEgZbVS/a6/y7DBRdEiGLpBaBsPc=";
|
||
|
|
};
|
||
|
|
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
}
|