feat(ocaml/date_calc): update

This commit is contained in:
catvayor 2025-01-22 18:33:19 +01:00
parent c941b7b08c
commit 4304c2743b
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

41
ocaml-pkgs/dates_calc.nix Normal file
View file

@ -0,0 +1,41 @@
{
lib,
fetchFromGitHub,
buildDunePackage,
alcotest,
qcheck,
python3,
}:
buildDunePackage rec {
pname = "dates_calc";
version = "0.0.7";
minimalOCamlVersion = "4.11";
duneVersion = "3";
src = fetchFromGitHub {
owner = "catalalang";
repo = "dates-calc";
rev = version;
sha256 = "sha256-MQpQZLXu+8Q9JLZ329KqO5O/qSO+4Tm7TDh0/OPJs0c=";
};
propagatedBuildInputs = [ ];
nativeBuildInputs = [
python3
];
doCheck = true;
checkInputs = [
alcotest
qcheck
];
meta = {
description = "Date calculation library";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.niols ];
homepage = "https://github.com/catalalang/dates-calc";
};
}