Skip to content

Commit

Permalink
fix(grafana): add coreutils as runtimeInput for the startScript (#164)
Browse files Browse the repository at this point in the history
`readlink` shipped by default in macOS doesn't support `-m` flag
  • Loading branch information
shivaraj-bh authored Apr 10, 2024
1 parent 8d390cb commit 04b5f77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nix/grafana.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ in
grafanaConfigIni = iniFormat.generate "defaults.ini" grafanaConfig;
startScript = pkgs.writeShellApplication {
name = "start-grafana";
runtimeInputs = [ config.package ];
runtimeInputs =
[ config.package ] ++
(lib.lists.optionals pkgs.stdenv.isDarwin [
pkgs.coreutils
]);
text = ''
grafana server --config ${grafanaConfigIni} \
--homepath ${config.package}/share/grafana \
Expand Down

0 comments on commit 04b5f77

Please sign in to comment.