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 { };