Packaged teslamate's grafana dashboards
This commit is contained in:
parent
c7507bce13
commit
00319bf5ee
25
packages/teslamate-grafana-dashboards/default.nix
Normal file
25
packages/teslamate-grafana-dashboards/default.nix
Normal 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"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue