nixos/influxdb: Fix cross compilation for config.toml

This commit is contained in:
Christian Kögler 2021-10-10 10:34:55 +02:00
parent 07ee93716c
commit b154b6f7d8

View file

@ -96,9 +96,8 @@ let
};
} cfg.extraConfig;
configFile = pkgs.runCommand "config.toml" {
buildInputs = [ pkgs.remarshal ];
preferLocalBuild = true;
configFile = pkgs.runCommandLocal "config.toml" {
nativeBuildInputs = [ pkgs.remarshal ];
} ''
remarshal -if json -of toml \
< ${pkgs.writeText "config.json" (builtins.toJSON configOptions)} \