33 lines
755 B
Nix
33 lines
755 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "hdrhistogram_c";
|
|
version = "0.11.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HdrHistogram";
|
|
repo = "HdrHistogram_c";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-TFlrC4bgK8o5KRZcLMlYU5EO9Oqaqe08PjJgmsUl51M=";
|
|
};
|
|
|
|
buildInputs = [ zlib ];
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "C port or High Dynamic Range (HDR) Histogram";
|
|
homepage = "https://github.com/HdrHistogram/HdrHistogram_c";
|
|
changelog = "https://github.com/HdrHistogram/HdrHistogram_c/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.publicDomain;
|
|
maintainers = with lib.maintainers; [ jherland ];
|
|
};
|
|
})
|