wireguard-exporter: fix static build
This commit is contained in:
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user