1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

ocamlPackages.faraday: init at 0.5.0

Faraday is a library for writing fast and memory-efficient serializers in
OCaml.

Homepage: https://github.com/inhabitedtype/faraday
This commit is contained in:
Vincent Laporte 2017-12-05 18:16:19 +00:00
parent 14608047f4
commit 3582a97464
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, alcotest }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "faraday is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-faraday-${version}";
version = "0.5.0";
src = fetchFromGitHub {
owner = "inhabitedtype";
repo = "faraday";
rev = version;
sha256 = "1kql0il1frsbx6rvwqd7ahi4m14ik6la5an6c2w4x7k00ndm4d7n";
};
buildInputs = [ ocaml findlib jbuilder alcotest ];
buildPhase = "jbuilder build -p faraday";
doCheck = true;
checkPhase = "jbuilder runtest";
inherit (jbuilder) installPhase;
meta = {
description = "Serialization library built for speed and memory efficiency";
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
};
}

View file

@ -231,6 +231,8 @@ let
faillib = callPackage ../development/ocaml-modules/faillib { };
faraday = callPackage ../development/ocaml-modules/faraday { };
fieldslib_p4 = callPackage ../development/ocaml-modules/fieldslib { };
fileutils = callPackage ../development/ocaml-modules/fileutils { };