Packaged teslamate's grafana dashboards

This commit is contained in:
Alejandro Angulo 2024-01-23 17:36:20 -08:00
parent c7507bce13
commit 00319bf5ee
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -0,0 +1,25 @@
{
stdenv,
lib,
fetchFromGitHub,
...
}:
stdenv.mkDerivation rec {
pname = "teslamate-grafana-dashboards";
version = "1.28.2";
src = fetchFromGitHub {
owner = "teslamate-org";
repo = "teslamate";
rev = "v${version}";
hash = "sha256-CH3u6ijzvVdjfTVu06UcyW4NhVQKeUKtC/j+UeDELNc=";
};
dontBuild = true;
installPhase = ''
mkdir -p "$out"
cp "$src"/grafana/dashboards.yml "$out"
cp -r "$src"/grafana/dashboards "$out"
'';
}