git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.imagelib: init at 20171028 (#40910)
commitcc2ac8a39ebad753d8da6adf4c0d3dd18ec7fa65 authorVincent Laporte <vbgl@users.noreply.github.com> dateWed 23 May 2018, 10:33 (9 years ago) parentca556c4
2 files changed+28
pkgs/development/ocaml-modules/imagelib/default.nix+26 pkgs/top-level/ocaml-packages.nix+2
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
269269
270270 higlo = callPackage ../development/ocaml-modules/higlo { };
271271
272+ imagelib = callPackage ../development/ocaml-modules/imagelib { };
273+
272274 inotify = callPackage ../development/ocaml-modules/inotify { };
273275
274276 integers = callPackage ../development/ocaml-modules/integers { };