Merge pull request #258169 from VergeDX/wireguard-exporter

wireguard-exporter: fix static build
This commit is contained in:
Maximilian Bosch 2023-10-01 12:47:12 +02:00 committed by GitHub
commit fddfad1f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,11 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-NsxGpjuZPpz4gCJRp5IOcfRFh8DTud47nV2bE0/kc2Q=";
postPatch = ''
# drop hardcoded linker names, fixing static build
rm .cargo/config.toml
'';
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
passthru.tests = { inherit (nixosTests.prometheus-exporters) wireguard; };