From 837b2abb2b2a35d2aefa003c24dac4d03ca89d40 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 28 Dec 2014 18:03:27 +0100 Subject: [PATCH] Adds ocaml-magick-0.34 This package aims to provide the ImageMagick methods to OCaml Homepage: http://www.linux-nantes.org/~fmonnier/OCaml/ImageMagick/ --- .../ocaml-modules/magick/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/magick/default.nix diff --git a/pkgs/development/ocaml-modules/magick/default.nix b/pkgs/development/ocaml-modules/magick/default.nix new file mode 100644 index 00000000000..2d24fefa205 --- /dev/null +++ b/pkgs/development/ocaml-modules/magick/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, which, pkgconfig, ocaml, findlib, imagemagick }: + +stdenv.mkDerivation { + name = "ocaml-magick-0.34"; + src = fetchurl { + url = http://www.linux-nantes.org/~fmonnier/OCaml/ImageMagick/ImageMagick/OCaml-ImageMagick-0.34.tgz; + sha256 = "0gn9l2qdr8gby2x8c2mb59x1kipb2plr45rbq6ymcxyi0wmzfh3q"; + }; + + nativeBuildInputs = [ which pkgconfig ]; + buildInputs = [ ocaml findlib imagemagick ]; + + createFindlibDestdir = true; + + installTargets = [ "find_install" ]; + + meta = { + homepage = http://www.linux-nantes.org/~fmonnier/OCaml/ImageMagick/; + description = "ImageMagick Binding for OCaml"; + license = stdenv.lib.licenses.mit; + platforms = imagemagick.meta.platforms; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 23f16f75e8b..06f6518c124 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3706,6 +3706,8 @@ let macaque = callPackage ../development/ocaml-modules/macaque { }; + magick = callPackage ../development/ocaml-modules/magick { }; + menhir = callPackage ../development/ocaml-modules/menhir { }; merlin = callPackage ../development/tools/ocaml/merlin { };