nixpkgs/pkgs/tools/networking/oha/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
997 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, pkg-config
, openssl
, darwin
}:
2021-09-09 17:03:45 +03:00
rustPlatform.buildRustPackage rec {
pname = "oha";
version = "0.5.6";
2021-09-09 17:03:45 +03:00
src = fetchFromGitHub {
owner = "hatoo";
repo = pname;
2022-08-05 04:31:03 +03:00
rev = "refs/tags/v${version}";
sha256 = "sha256-0Z8+dpZs0KMknyuw4Brkr8UosTDk75Kvy6zA/d91xgE=";
2021-09-09 17:03:45 +03:00
};
cargoSha256 = "sha256-isrfxnZbkIqQJ+jipYXvl1QgQ6hwRMdGA1kKFM1saDQ=";
2021-09-09 17:03:45 +03:00
nativeBuildInputs = lib.optionals stdenv.isLinux [
pkg-config
];
2021-09-09 17:03:45 +03:00
buildInputs = lib.optionals stdenv.isLinux [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
2022-08-27 22:35:46 +03:00
2021-09-09 17:03:45 +03:00
# tests don't work inside the sandbox
doCheck = false;
meta = with lib; {
description = "HTTP load generator inspired by rakyll/hey with tui animation";
homepage = "https://github.com/hatoo/oha";
2022-08-05 04:31:03 +03:00
changelog = "https://github.com/hatoo/oha/blob/v${version}/CHANGELOG.md";
2021-09-09 17:03:45 +03:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}