mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
fix(nix): non-recursive provider for ../grafana/dashboards (#4680)
* non-recursive provider for ../grafana/dashboards * docs: update changelog * fix(nix): fixc incorrect hashes --------- Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de> Co-authored-by: Brian May <brian@linuxpenguins.xyz>
This commit is contained in:
co-authored by
Jakob Lichterfeld
Brian May
parent
38ff2a2858
commit
ca398000f8
@@ -1,6 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
perSystem = { lib, pkgs, system, ... }:
|
||||
perSystem =
|
||||
{ lib
|
||||
, pkgs
|
||||
, system
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
elixir = pkgs.beam.packages.erlang_26.elixir_1_17;
|
||||
beamPackages = pkgs.beam.packagesWith pkgs.beam.interpreters.erlang_26;
|
||||
@@ -13,7 +18,7 @@
|
||||
TOP_SRC = src;
|
||||
pname = "${pname}-mix-deps";
|
||||
inherit src version;
|
||||
hash = "sha256-QgaEcRBayYewkfX+qI2n8jPQwbTPG9HPup+1sHR8joY=";
|
||||
hash = "sha256-Z0gC/eB3pYcTPJJ8bitQQWna4A92yMGrWlEI7tGIRP4=";
|
||||
# hash = pkgs.lib.fakeHash;
|
||||
};
|
||||
|
||||
@@ -21,7 +26,7 @@
|
||||
nodePackages = pkgs.buildNpmPackage {
|
||||
name = "${pname}-assets";
|
||||
src = "${src}/assets";
|
||||
npmDepsHash = "sha256-05AKPyms4WP8MHBqWMup8VXR3a1tv/f/7jT8c6EpWBw=";
|
||||
npmDepsHash = "sha256-5bnoGjuFC4jPUkrIsXBHUPCy4nWY7h5fWEWMDoZqaC8=";
|
||||
# npmDepsHash = pkgs.lib.fakeHash;
|
||||
dontNpmBuild = true;
|
||||
inherit nodejs;
|
||||
|
||||
+2
-2
@@ -278,9 +278,9 @@ in
|
||||
disableDeletion = false;
|
||||
allowUiUpdates = true;
|
||||
updateIntervalSeconds = 86400;
|
||||
options.path = lib.sources.sourceFilesBySuffices
|
||||
options.path = lib.sources.sourceByRegex
|
||||
../grafana/dashboards
|
||||
[ ".json" ];
|
||||
[ "^[^\/]*\.json$" ];
|
||||
}
|
||||
{
|
||||
name = "teslamate_internal";
|
||||
|
||||
Reference in New Issue
Block a user