biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / rewrk / default.nix
blobc4f4755f4b5be0861d349147007fa4a7b9b2a8e3
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "rewrk";
10   version = "0.3.2";
12   src = fetchFromGitHub {
13     owner = "lnx-search";
14     repo = "rewrk";
15     rev = version;
16     hash = "sha256-Bqr5kmIIx+12hW4jpINcv0GBJBbMAkd4di/hZSXlT18=";
17   };
19   cargoLock.lockFile = ./Cargo.lock;
21   postPatch = ''
22     ln -s ${./Cargo.lock} Cargo.lock
23   '';
25   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
26     darwin.apple_sdk.frameworks.Security
27   ];
29   meta = with lib; {
30     description = "More modern http framework benchmarker supporting HTTP/1 and HTTP/2 benchmarks";
31     homepage = "https://github.com/lnx-search/rewrk";
32     changelog = "https://github.com/lnx-search/rewrk/releases/tag/${version}";
33     license = licenses.mit;
34     maintainers = with maintainers; [ figsoda ];
35     mainProgram = "rewrk";
36   };