Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
926 B
Nix
52 lines
926 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildDunePackage,
|
|
xxHash,
|
|
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
|
|
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 ];
|
|
};
|
|
}
|