From 02bb7133b5da2adf197de68aea562532f48fac50 Mon Sep 17 00:00:00 2001 From: Yuri Albuquerque Date: Wed, 25 Dec 2024 16:53:17 -0300 Subject: [PATCH] ocamlPackages.odds: init at 1.2 --- .../ocaml-modules/odds/default.nix | 37 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/ocaml-modules/odds/default.nix diff --git a/pkgs/development/ocaml-modules/odds/default.nix b/pkgs/development/ocaml-modules/odds/default.nix new file mode 100644 index 00000000000000..9cd84c506f6f86 --- /dev/null +++ b/pkgs/development/ocaml-modules/odds/default.nix @@ -0,0 +1,37 @@ +{ + lib, + fetchFromGitHub, + buildDunePackage, + menhir, + cmdliner, +}: +buildDunePackage rec { + pname = "odds"; + version = "1.2"; + + duneVersion = "3"; + + minimalOcamlVersion = "5.0.0"; + + src = fetchFromGitHub { + owner = "raphael-proust"; + repo = pname; + rev = version; + hash = "sha256-tPDowkpsJQKCoeuXOb9zPORoudUvkRBZ3OzkH2QE2zg="; + }; + + propagatedBuildInputs = [ + cmdliner + ]; + + nativeBuildInputs = [ + menhir + ]; + + meta = with lib; { + description = "Dice roller"; + homepage = "https://github.com/raphael-proust/odds"; + license = licenses.isc; + maintainers = with maintainers; [ Denommus ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 1eb7e48874fd45..b9e08714dce32f 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1408,6 +1408,8 @@ let odate = callPackage ../development/ocaml-modules/odate { }; + odds = callPackage ../development/ocaml-modules/odds { }; + odig = callPackage ../development/ocaml-modules/odig { }; odoc = callPackage ../development/ocaml-modules/odoc { };