diff --git a/pkgs/development/ocaml-modules/camlp-streams/default.nix b/pkgs/development/ocaml-modules/camlp-streams/default.nix new file mode 100644 index 00000000000..d5c8ac945d5 --- /dev/null +++ b/pkgs/development/ocaml-modules/camlp-streams/default.nix @@ -0,0 +1,20 @@ +{ lib, buildDunePackage, fetchFromGitHub }: + +buildDunePackage rec { + pname = "camlp-streams"; + version = "5.0"; + + src = fetchFromGitHub { + owner = "ocaml"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256:1wd5k0irzwi841b27pbx0n5fdybbgx97184zm8cjajizd2j8w0g5"; + }; + + meta = { + description = "Stream and Genlex libraries for use with Camlp4 and Camlp5"; + license = lib.licenses.lgpl21Only; + maintainers = [ lib.maintainers.vbgl ]; + }; + +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c75e92da4ee..e1712cc35d3 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -105,6 +105,8 @@ let camlidl = callPackage ../development/tools/ocaml/camlidl { }; + camlp-streams = callPackage ../development/ocaml-modules/camlp-streams { }; + camlp4 = if lib.versionOlder "4.02" ocaml.version then callPackage ../development/tools/ocaml/camlp4 { }