2020-12-07 07:45:13 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub
|
|
|
|
, menhir
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "odate";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.7";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
minimalOCamlVersion = "4.07";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hhugo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-C11HpftrYOCVyWT31wrqo8FVZuP7mRUkRv5IDeAZ+To=";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ menhir ];
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Date and duration in OCaml";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|