ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / development / ocaml-modules / xxhash / default.nix
blob0b16c4d8c03ac95b4194a7ad393de66b5284b993
2   lib,
3   fetchFromGitHub,
4   buildDunePackage,
5   xxHash,
6   ctypes,
7   ctypes-foreign,
8   dune-configurator,
9   ppx_expect,
12 buildDunePackage rec {
13   pname = "xxhash";
14   version = "0.2";
16   minimalOCamlVersion = "4.08";
18   src = fetchFromGitHub {
19     owner = "314eter";
20     repo = "ocaml-xxhash";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-0+ac5EWV9DCVMT4wOcXC95GVEwsUIZzFn2laSzmK6jE=";
23   };
25   postPatch = ''
26     substituteInPlace stubs/dune --replace-warn 'ctypes))' 'ctypes ctypes.stubs))'
27   '';
29   buildInputs = [
30     dune-configurator
31   ];
33   propagatedBuildInputs = [
34     ctypes
35     ctypes-foreign
36     xxHash
37   ];
39   doCheck = true;
41   checkInputs = [
42     ppx_expect
43   ];
45   meta = {
46     homepage = "https://github.com/314eter/ocaml-xxhash";
47     description = "Bindings for xxHash, an extremely fast hash algorithm";
48     license = with lib.licenses; [ mit ];
49     maintainers = with lib.maintainers; [ toastal ];
50   };