git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #123497 from stephank/fix-prometheus-wireguard-exporter-darwin

prometheus-wireguard-exporter: fix darwin build

commit30d16a42dfe9c8f5ab13b947b668d023eb5411e2 authorMaximilian Bosch <maximilian@mbosch.me> dateTue 18 May 2021, 15:18 (6 years ago) parent1b1faeb9284a2b
1 file changed+2−2
pkgs/servers/monitoring/prometheus/wireguard-exporter.nix+2−2
pkgs/servers/monitoring/prometheus/wireguard-exporter.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, rustPlatform, fetchFromGitHub, lib, Security, nixosTests }:
1+{ stdenv, rustPlatform, fetchFromGitHub, lib, libiconv, Security, nixosTests }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "wireguard-exporter";
@@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
1313
1414 cargoSha256 = "sha256-lNFsO7FSmH1+DLM7ID0vn6234qTdtUoaLSnqKcbHoXE=";
1515
16− buildInputs = lib.optional stdenv.isDarwin Security;
16+ buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
1717
1818 passthru.tests = { inherit (nixosTests.prometheus-exporters) wireguard; };
1919