diff options
author | Christian Kögler <ck3d@gmx.de> | 2022-09-11 07:29:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 07:29:59 +0200 |
commit | 8a039bc1ddd6bdcc34602f26aaa4b1c980cd502c (patch) | |
tree | 7ce6b8e5cebdaa6a450d6eb86b4c3081c54e48ec /nixos | |
parent | 1523c0cd8f9f8a8752a40ae472d28cd20e1fa7e2 (diff) | |
parent | 330bc02b0132f0feab12901ef290ddc3dc9a0a21 (diff) |
Merge pull request #190634 from ck3d/fix-nixos-influx-cross
nixos/influx: Fix cross compilation for configFile
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/databases/influxdb.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/modules/services/databases/influxdb.nix b/nixos/modules/services/databases/influxdb.nix index 9b3922c70af34..b3361d2014caf 100644 --- a/nixos/modules/services/databases/influxdb.nix +++ b/nixos/modules/services/databases/influxdb.nix @@ -96,10 +96,8 @@ let }; } cfg.extraConfig; - configFile = pkgs.runCommandLocal "config.toml" { - nativeBuildInputs = [ pkgs.remarshal ]; - } '' - remarshal -if json -of toml \ + configFile = pkgs.runCommandLocal "config.toml" { } '' + ${pkgs.buildPackages.remarshal}/bin/remarshal -if json -of toml \ < ${pkgs.writeText "config.json" (builtins.toJSON configOptions)} \ > $out ''; |