lol

nixos/prometheus: fix cross-compilation

+3 -3
+1 -1
nixos/modules/services/monitoring/prometheus/alertmanager.nix
··· 8 8 9 9 checkedConfig = file: 10 10 if cfg.checkConfig then 11 - pkgs.runCommand "checked-config" { buildInputs = [ cfg.package ]; } '' 11 + pkgs.runCommand "checked-config" { nativeBuildInputs = [ cfg.package ]; } '' 12 12 ln -s ${file} $out 13 13 amtool check-config $out 14 14 '' else file;
+1 -1
nixos/modules/services/monitoring/prometheus/default.nix
··· 31 31 if checkConfigEnabled then 32 32 pkgs.runCommandLocal 33 33 "${name}-${replaceStrings [" "] [""] what}-checked" 34 - { buildInputs = [ cfg.package.cli ]; } '' 34 + { nativeBuildInputs = [ cfg.package.cli ]; } '' 35 35 ln -s ${file} $out 36 36 promtool ${what} $out 37 37 '' else file;
+1 -1
nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
··· 25 25 checkConfig = file: 26 26 pkgs.runCommand "checked-blackbox-exporter.conf" { 27 27 preferLocalBuild = true; 28 - buildInputs = [ pkgs.buildPackages.prometheus-blackbox-exporter ]; 28 + nativeBuildInputs = [ pkgs.buildPackages.prometheus-blackbox-exporter ]; 29 29 } '' 30 30 ln -s ${coerceConfigFile file} $out 31 31 blackbox_exporter --config.check --config.file $out