Files
quantenzitrone d077a4dc0a xxhash: rename from xxHash
rename to lowercase to fit package naming conventions
2026-03-06 20:15:57 +01:00

52 lines
929 B
Nix

{
lib,
fetchFromGitHub,
buildDunePackage,
pkgs,
ctypes,
ctypes-foreign,
dune-configurator,
ppx_expect,
}:
buildDunePackage rec {
pname = "xxhash";
version = "0.2";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "314eter";
repo = "ocaml-xxhash";
tag = "v${version}";
hash = "sha256-0+ac5EWV9DCVMT4wOcXC95GVEwsUIZzFn2laSzmK6jE=";
};
postPatch = ''
substituteInPlace stubs/dune --replace-warn 'ctypes))' 'ctypes ctypes.stubs))'
'';
buildInputs = [
dune-configurator
];
propagatedBuildInputs = [
ctypes
ctypes-foreign
pkgs.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 ];
};
}