From 289e2a10dbb26c368aa9b82229b17ea545b6d93d Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Wed, 10 Jun 2015 23:26:31 +0200 Subject: [PATCH] ocaml-faillib: init at 111.17.00 --- .../ocaml-modules/faillib/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/faillib/default.nix diff --git a/pkgs/development/ocaml-modules/faillib/default.nix b/pkgs/development/ocaml-modules/faillib/default.nix new file mode 100644 index 000000000000..98acc8032e3f --- /dev/null +++ b/pkgs/development/ocaml-modules/faillib/default.nix @@ -0,0 +1,24 @@ +{stdenv, buildOcaml, fetchurl, herelib, camlp4}: + +buildOcaml rec { + minimumSupportedOcamlVersion = "4.00"; + name = "faillib"; + version = "111.17.00"; + + src = fetchurl { + url = "https://github.com/janestreet/faillib/archive/${version}.tar.gz"; + sha256 = "12dvaxkmgf7yzzvbadcyk1n17llgh6p8qr33867d21npaljy7l9v"; + }; + + propagatedBuildInputs = [ camlp4 herelib ]; + + doCheck = true; + checkPhase = "make test"; + + meta = with stdenv.lib; { + homepage = https://ocaml.janestreet.com/; + description = "Library for dealing with failure in OCaml"; + license = licenses.asl20; + maintainers = [ maintainers.maurer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2d4577efd4cf..9ff13ba10c40 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4326,6 +4326,8 @@ let lwt = ocaml_lwt; }; + faillib = callPackage ../development/ocaml-modules/faillib { }; + fieldslib = callPackage ../development/ocaml-modules/fieldslib { }; fileutils = callPackage ../development/ocaml-modules/fileutils { };