0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

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; } cfg.extraConfig;
configFile = pkgs.runCommand "config.toml" { configFile = pkgs.runCommandLocal "config.toml" {
buildInputs = [ pkgs.remarshal ]; nativeBuildInputs = [ pkgs.remarshal ];
preferLocalBuild = true;
} '' } ''
remarshal -if json -of toml \ remarshal -if json -of toml \
< ${pkgs.writeText "config.json" (builtins.toJSON configOptions)} \ < ${pkgs.writeText "config.json" (builtins.toJSON configOptions)} \