ocamlPackages.xxhash: init at 0.2

0.1 is an ‘official’ release, but 0.2 tag includes updates
This commit is contained in:
toastal 2024-02-27 21:15:17 +07:00 committed by Vincent Laporte
parent d53c203739
commit 7eb1e9bf0a
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ 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 ];
};
}

View File

@ -1905,6 +1905,8 @@ let
xtmpl_ppx = callPackage ../development/ocaml-modules/xtmpl/ppx.nix { };
xxhash = callPackage ../development/ocaml-modules/xxhash/default.nix { };
### Y ###
yaml = callPackage ../development/ocaml-modules/yaml { };