Merge pull request #190634 from ck3d/fix-nixos-influx-cross
nixos/influx: Fix cross compilation for configFile
This commit is contained in:
commit
8a039bc1dd
1 changed files with 2 additions and 4 deletions
|
@ -96,10 +96,8 @@ let
|
||||||
};
|
};
|
||||||
} cfg.extraConfig;
|
} cfg.extraConfig;
|
||||||
|
|
||||||
configFile = pkgs.runCommandLocal "config.toml" {
|
configFile = pkgs.runCommandLocal "config.toml" { } ''
|
||||||
nativeBuildInputs = [ pkgs.remarshal ];
|
${pkgs.buildPackages.remarshal}/bin/remarshal -if json -of toml \
|
||||||
} ''
|
|
||||||
remarshal -if json -of toml \
|
|
||||||
< ${pkgs.writeText "config.json" (builtins.toJSON configOptions)} \
|
< ${pkgs.writeText "config.json" (builtins.toJSON configOptions)} \
|
||||||
> $out
|
> $out
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue