45 lines
783 B
Nix
45 lines
783 B
Nix
|
{ lib
|
||
|
, fetchFromGitHub
|
||
|
, buildDunePackage
|
||
|
, xxHash
|
||
|
, ctypes
|
||
|
, dune-configurator
|
||
|
, ppx_expect
|
||
|
}:
|
||
|
|
||
|
buildDunePackage rec {
|
||
|
pname = "xxhash";
|
||
|
version = "0.2";
|
||
|
|
||
|
minimalOCamlVersion = "4.08";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "314eter";
|
||
|
repo = "ocaml-xxhash";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-0+ac5EWV9DCVMT4wOcXC95GVEwsUIZzFn2laSzmK6jE=";
|
||
|
};
|
||
|
|
||
|
buildInputs = [
|
||
|
dune-configurator
|
||
|
];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
ctypes
|
||
|
xxHash
|
||
|
];
|
||
|
|
||
|
doCheck = true;
|
||
|
|
||
|
checkInputs = [
|
||
|
ppx_expect
|
||
|
];
|
||
|
|
||
|
meta = {
|
||
|
homepage = "https://github.com/314eter/ocaml-xxhash";
|
||
|
description = "Bindings for xxHash, an extremely fast hash algorithm";
|
||
|
license = with lib.licenses; [ mit ];
|
||
|
maintainers = with lib.maintainers; [ toastal ];
|
||
|
};
|
||
|
}
|