mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
anevicon: fix darwin build
This commit is contained in:
parent
7c35d1e73e
commit
967c6d8640
@ -3,6 +3,7 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
|
, libiconv
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "1g15v13ysx09fy0b8qddw5fwql2pvwzc2g2h1ndhzpxvfy7fzpr1";
|
cargoSha256 = "1g15v13ysx09fy0b8qddw5fwql2pvwzc2g2h1ndhzpxvfy7fzpr1";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||||
|
|
||||||
cargoPatches = [
|
cargoPatches = [
|
||||||
# Add Cargo.lock file, https://github.com/rozgo/anevicon/pull/1
|
# Add Cargo.lock file, https://github.com/rozgo/anevicon/pull/1
|
||||||
@ -30,6 +31,9 @@ rustPlatform.buildRustPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Tries to send large UDP packets that Darwin rejects.
|
||||||
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "UDP-based load generator";
|
description = "UDP-based load generator";
|
||||||
homepage = "https://github.com/rozgo/anevicon";
|
homepage = "https://github.com/rozgo/anevicon";
|
||||||
|
Loading…
Reference in New Issue
Block a user