diff --git a/pkgs/development/ocaml-modules/imagelib/default.nix b/pkgs/development/ocaml-modules/imagelib/default.nix new file mode 100644 index 00000000000..77b18f0ce3a --- /dev/null +++ b/pkgs/development/ocaml-modules/imagelib/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild, decompress }: + +stdenv.mkDerivation rec { + version = "20171028"; + name = "ocaml${ocaml.version}-imagelib-${version}"; + src = fetchFromGitHub { + owner = "rlepigre"; + repo = "ocaml-imagelib"; + rev = "ocaml-imagelib_${version}"; + sha256 = "1frkrgcrv4ybdmqcfxpfsywx0hm1arxgxp32n8kzky6qip1g0zxf"; + }; + + buildInputs = [ which ocaml findlib ocamlbuild ]; + + propagatedBuildInputs = [ decompress ]; + + createFindlibDestdir = true; + + meta = { + description = "Image formats such as PNG and PPM in OCaml"; + license = stdenv.lib.licenses.lgpl3; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + inherit (ocaml.meta) platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index e46888992f7..7bbb56c7b64 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -269,6 +269,8 @@ let higlo = callPackage ../development/ocaml-modules/higlo { }; + imagelib = callPackage ../development/ocaml-modules/imagelib { }; + inotify = callPackage ../development/ocaml-modules/inotify { }; integers = callPackage ../development/ocaml-modules/integers { };