Merge pull request #190634 from ck3d/fix-nixos-influx-cross

nixos/influx: Fix cross compilation for configFile
This commit is contained in:
Christian Kögler 2022-09-11 07:29:59 +02:00 committed by GitHub
commit 8a039bc1dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';