blob: 6b48ce95b42391c344fd4e431e2112a1cdab0338 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "rewrk";
version = "0.3.2";
src = fetchFromGitHub {
owner = "lnx-search";
repo = "rewrk";
rev = version;
hash = "sha256-Bqr5kmIIx+12hW4jpINcv0GBJBbMAkd4di/hZSXlT18=";
};
cargoLock.lockFile = ./Cargo.lock;
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "A more modern http framework benchmarker supporting HTTP/1 and HTTP/2 benchmarks";
homepage = "https://github.com/lnx-search/rewrk";
changelog = "https://github.com/lnx-search/rewrk/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}
|