Skip to content

Commit

Permalink
ocamlPackages.odate: init at 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Dec 6, 2020
1 parent 1df84d1 commit cf7475d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/development/ocaml-modules/odate/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ lib, buildDunePackage, fetchFromGitHub
, menhir
}:

buildDunePackage rec {
pname = "odate";
version = "0.6";

useDune2 = true;

minimumOCamlVersion = "4.07";

src = fetchFromGitHub {
owner = "hhugo";
repo = pname;
rev = version;
sha256 = "1dk33lr0g2jnia2gqsm6nnc7nf256qgkm3v30w477gm6y2ppfm3h";
};

buildInputs = [ menhir ];

meta = {
description = "Date and duration in OCaml";
inherit (src.meta) homepage;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,8 @@ let

octavius = callPackage ../development/ocaml-modules/octavius { };

odate = callPackage ../development/ocaml-modules/odate { };

odoc = callPackage ../development/ocaml-modules/odoc { };

omd = callPackage ../development/ocaml-modules/omd { };
Expand Down

0 comments on commit cf7475d

Please sign in to comment.