git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.imagelib: init at 20171028 (#40910)
cc2ac8aVincent Laporte
pkgs/development/ocaml-modules/imagelib/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild, decompress }:
2+
3+stdenv.mkDerivation rec {
4+ version = "20171028";
5+ name = "ocaml${ocaml.version}-imagelib-${version}";
6+ src = fetchFromGitHub {
7+ owner = "rlepigre";
8+ repo = "ocaml-imagelib";
9+ rev = "ocaml-imagelib_${version}";
10+ sha256 = "1frkrgcrv4ybdmqcfxpfsywx0hm1arxgxp32n8kzky6qip1g0zxf";
11+ };
12+
13+ buildInputs = [ which ocaml findlib ocamlbuild ];
14+
15+ propagatedBuildInputs = [ decompress ];
16+
17+ createFindlibDestdir = true;
18+
19+ meta = {
20+ description = "Image formats such as PNG and PPM in OCaml";
21+ license = stdenv.lib.licenses.lgpl3;
22+ maintainers = [ stdenv.lib.maintainers.vbgl ];
23+ inherit (src.meta) homepage;
24+ inherit (ocaml.meta) platforms;
25+ };
26+}
pkgs/top-level/ocaml-packages.nix+2
@@ -269,6 +269,8 @@ let
269
269
270 higlo = callPackage ../development/ocaml-modules/higlo { };
270 higlo = callPackage ../development/ocaml-modules/higlo { };
271
271
272+ imagelib = callPackage ../development/ocaml-modules/imagelib { };
273+
272 inotify = callPackage ../development/ocaml-modules/inotify { };
274 inotify = callPackage ../development/ocaml-modules/inotify { };
273
275
274 integers = callPackage ../development/ocaml-modules/integers { };
276 integers = callPackage ../development/ocaml-modules/integers { };