tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/prometheus: fix cross-compilation
Alexandre Iooss
2 years ago
925a8806
d3fd2777
+3
-3
3 changed files
expand all
collapse all
unified
split
nixos
modules
services
monitoring
prometheus
alertmanager.nix
default.nix
exporters
blackbox.nix
+1
-1
nixos/modules/services/monitoring/prometheus/alertmanager.nix
reviewed
···
8
8
9
9
checkedConfig = file:
10
10
if cfg.checkConfig then
11
11
-
pkgs.runCommand "checked-config" { buildInputs = [ cfg.package ]; } ''
11
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
reviewed
···
31
31
if checkConfigEnabled then
32
32
pkgs.runCommandLocal
33
33
"${name}-${replaceStrings [" "] [""] what}-checked"
34
34
-
{ buildInputs = [ cfg.package.cli ]; } ''
34
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
reviewed
···
25
25
checkConfig = file:
26
26
pkgs.runCommand "checked-blackbox-exporter.conf" {
27
27
preferLocalBuild = true;
28
28
-
buildInputs = [ pkgs.buildPackages.prometheus-blackbox-exporter ];
28
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