nixpkgs-suyu/pkgs/servers/redpanda/hdr-histogram.nix
Alexey Vakhrenev 1393d2262b redpanda: 22.3.11 -> 22.3.13
Build rpk from source. Add redpanda server.
2023-02-17 03:23:27 -05:00

28 lines
653 B
Nix

{ clangStdenv
, cmake
, fetchFromGitHub
, lib
, zlib
}:
let
pname = "HdrHistogram_c";
version = "0.11.5";
in
clangStdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "HdrHistogram";
repo = "HdrHistogram_c";
rev = version;
sha256 = "sha256-29if+0H8wdpQBN48lt0ylGgtUCv/tJYZnG5LzcIqXDs=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
meta = with lib; {
description = "C port of the HdrHistogram";
license = licenses.bsd2;
homepage = "https://github.com/HdrHistogram/HdrHistogram_c";
maintainers = with maintainers; [ avakhrenev ];
platforms = platforms.unix;
};
}