From effd32025de28c69766ae48f7196d0db7dd9e1ec Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 19 May 2021 14:58:21 +0200 Subject: [PATCH] oha: init at 0.4.5 --- flake.nix | 3 +++ oha/default.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 oha/default.nix diff --git a/flake.nix b/flake.nix index 5c75158..ad68e4f 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,8 @@ pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { }; }; + oha = callPackage ./oha { }; + textidote = callPackage ./textidote { }; unxwb = callPackage ./unxwb { }; @@ -66,6 +68,7 @@ VisiCut cyanrip deemix + oha textidote unxwb x264-unstable; diff --git a/oha/default.nix b/oha/default.nix new file mode 100644 index 0000000..ed6a9bd --- /dev/null +++ b/oha/default.nix @@ -0,0 +1,28 @@ +{ lib, rustPlatform, fetchFromGitHub, openssl, pkg-config }: + +rustPlatform.buildRustPackage rec { + pname = "oha"; + version = "0.4.5"; + + src = fetchFromGitHub { + owner = "hatoo"; + repo = pname; + rev = "v${version}"; + sha256 = "0grq9qk34i1k1nmw77d0f19qxq5f4hqax7x1pjrqmq972ix194wr"; + }; + + cargoSha256 = "14cc4hzg755brmr657mbmiqwbf26sn252vn4cywp0zs6y63mmxfw"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ]; + + doCheck = false; # tests require network + + meta = with lib; { + description = "HTTP load generator, inspired by rakyll/hey with tui animation"; + homepage = "https://github.com/hatoo/oha"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.unix; + }; +}