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:
Matthias Wirtz
2025-04-22 10:32:34 +02:00
committed by GitHub
co-authored by Jakob Lichterfeld Brian May
parent 38ff2a2858
commit ca398000f8
3 changed files with 12 additions and 5 deletions
+8 -3
View File
@@ -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
View File
@@ -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";