dotfiles/packages/teslamate-grafana-dashboards/default.nix

25 lines
463 B
Nix
Raw Normal View History

{
stdenv,
fetchFromGitHub,
...
}:
stdenv.mkDerivation rec {
pname = "teslamate-grafana-dashboards";
version = "1.28.5";
src = fetchFromGitHub {
owner = "teslamate-org";
repo = "teslamate";
rev = "v${version}";
2024-02-06 04:20:02 +00:00
hash = "sha256-Iky9zWb3m/ex/amZw2dP5ZOpFw3uyg0JG6e9PkV+t4A=";
};
dontBuild = true;
installPhase = ''
mkdir -p "$out"
cp "$src"/grafana/dashboards.yml "$out"
cp -r "$src"/grafana/dashboards "$out"
'';
}