nixpkgs/pkgs/development/ocaml-modules/faraday/default.nix

27 lines
702 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, bigstringaf }:
buildDunePackage rec {
pname = "faraday";
version = "0.7.0";
minimumOCamlVersion = "4.02";
src = fetchFromGitHub {
owner = "inhabitedtype";
repo = pname;
rev = version;
sha256 = "0z6ikwlqad91iac0q5z88p3wzq5k15y86ckzmhdq1aqwrcm14bq2";
};
checkInputs = lib.optional doCheck alcotest;
propagatedBuildInputs = [ bigstringaf ];
doCheck = lib.versions.majorMinor ocaml.version != "4.07";
meta = {
description = "Serialization library built for speed and memory efficiency";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
}