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