about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/camlimages/4.0.nix
blob: 26735b1c5d7f7503a81cab5a62bf317560f659b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib, stdenv, fetchurl, omake, ocaml, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:

let
  pname = "camlimages";
  version = "4.0.1";
in

stdenv.mkDerivation {
  name = "${pname}-${version}";

  src = fetchurl {
    url = "https://bitbucket.org/camlspotter/camlimages/get/v4.0.1.tar.gz";
    sha256 = "b40237c1505487049799a7af296eb3996b3fa08eab94415546f46d61355747c4";
  };

  buildInputs = [ ocaml omake findlib graphicsmagick ghostscript ];

  propagatedBuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];

  createFindlibDestdir = true;

  preConfigure = ''
    rm ./configure
  '';

  buildPhase = ''
    omake
  '';

  installPhase = ''
    omake install
  '';

  meta = with lib; {
    branch = "4.0";
    homepage = "https://bitbucket.org/camlspotter/camlimages";
    description = "OCaml image processing library";
    license = licenses.lgpl2;
    maintainers = [ maintainers.vbgl ];
  };
}