diff --git a/pkgs/development/ocaml-modules/rosetta/default.nix b/pkgs/development/ocaml-modules/rosetta/default.nix new file mode 100644 index 000000000000..b6544f193b79 --- /dev/null +++ b/pkgs/development/ocaml-modules/rosetta/default.nix @@ -0,0 +1,34 @@ +{ buildDunePackage +, coin +, fetchzip +, lib +, yuscii +, uuuu +}: + +buildDunePackage rec { + pname = "rosetta"; + version = "0.3.0"; + + src = fetchzip { + url = "https://github.com/mirage/rosetta/releases/download/v${version}/rosetta-v${version}.tbz"; + sha256 = "1gzp3fbk8qd207cm25dgj9kj7b44ldqpjs63pl6xqvi9hx60m3ij"; + }; + + useDune2 = true; + + propagatedBuildInputs = [ + coin + uuuu + yuscii + ]; + + doCheck = false; # No tests. + + meta = { + description = "Universal decoder of an encoded flow (UTF-7, ISO-8859 and KOI8) to Unicode"; + license = lib.licenses.mit; + homepage = "https://github.com/mirage/rosetta"; + maintainers = with lib.maintainers; [ superherointj ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 12ed99e5d190..a1195a94a181 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1237,6 +1237,8 @@ let rope = callPackage ../development/ocaml-modules/rope { }; + rosetta = callPackage ../development/ocaml-modules/rosetta { }; + routes = callPackage ../development/ocaml-modules/routes { }; rpclib = callPackage ../development/ocaml-modules/rpclib { };