From be157625b60a2b98adf893a4dfb3d560d201b0e9 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 | 35 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 37 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 0000000000000..2c2d58978090f --- /dev/null +++ b/pkgs/development/ocaml-modules/odds/default.nix @@ -0,0 +1,35 @@ +{ + lib, + fetchFromGitHub, + buildDunePackage, + menhir, + cmdliner, +}: +buildDunePackage rec { + pname = "odds"; + version = "1.2"; + + minimalOcamlVersion = "5.0.0"; + + src = fetchFromGitHub { + owner = "raphael-proust"; + repo = pname; + tag = version; + hash = "sha256-tPDowkpsJQKCoeuXOb9zPORoudUvkRBZ3OzkH2QE2zg="; + }; + + propagatedBuildInputs = [ + cmdliner + ]; + + nativeBuildInputs = [ + menhir + ]; + + meta = { + description = "Dice roller"; + homepage = "https://github.com/raphael-proust/odds"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.Denommus ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 1eb7e48874fd4..b9e08714dce32 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 { };