Merge pull request #258169 from VergeDX/wireguard-exporter
wireguard-exporter: fix static build
This commit is contained in:
commit
fddfad1f51
|
@ -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; };
|
||||
|
|
Loading…
Reference in New Issue
Block a user