Commit 7eb1e9bf authored by toastal's avatar toastal Committed by Vincent Laporte
Browse files

ocamlPackages.xxhash: init at 0.2

0.1 is an ‘official’ release, but 0.2 tag includes updates
parent d53c2037
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };