2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, omake, ocaml, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
|
2013-06-04 20:49:10 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "camlimages";
|
|
|
|
version = "4.0.1";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2013-06-25 09:17:34 +02:00
|
|
|
src = fetchurl {
|
2013-06-04 20:49:10 +02:00
|
|
|
url = "https://bitbucket.org/camlspotter/camlimages/get/v4.0.1.tar.gz";
|
|
|
|
sha256 = "b40237c1505487049799a7af296eb3996b3fa08eab94415546f46d61355747c4";
|
|
|
|
};
|
|
|
|
|
2016-12-02 20:36:07 +01:00
|
|
|
buildInputs = [ ocaml omake findlib graphicsmagick ghostscript ];
|
2013-06-26 16:48:45 +02:00
|
|
|
|
2014-10-04 00:27:14 +02:00
|
|
|
propagatedBuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];
|
2013-06-04 20:49:10 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
rm ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
omake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
omake install
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-11-06 20:40:20 +01:00
|
|
|
branch = "4.0";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://bitbucket.org/camlspotter/camlimages";
|
2014-10-04 00:27:14 +02:00
|
|
|
description = "OCaml image processing library";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2013-06-04 20:49:10 +02:00
|
|
|
};
|
|
|
|
}
|