summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/camlimages
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-27 00:39:01 +0200
committerAlyssa Ross <hi@alyssa.is>2021-06-23 14:52:32 +0000
commit638e73de8337ff06f26159315e1ac8b1a066b281 (patch)
treeae78f97258228f6df8add9ff6cc55e86ed5ae42c /pkgs/development/ocaml-modules/camlimages
parent14f789f9e58f84a55d3f1b6b1c0d4d99391ce159 (diff)
downloadnixpkgs-638e73de8337ff06f26159315e1ac8b1a066b281.tar
nixpkgs-638e73de8337ff06f26159315e1ac8b1a066b281.tar.gz
nixpkgs-638e73de8337ff06f26159315e1ac8b1a066b281.tar.bz2
nixpkgs-638e73de8337ff06f26159315e1ac8b1a066b281.tar.lz
nixpkgs-638e73de8337ff06f26159315e1ac8b1a066b281.tar.xz
nixpkgs-638e73de8337ff06f26159315e1ac8b1a066b281.tar.zst
nixpkgs-638e73de8337ff06f26159315e1ac8b1a066b281.zip
ocamlPackages.camlimages_4_2_4: init at 4.2.4
Version of camlimages which works above OCaml 4.02, but also below 4.06.
Diffstat (limited to 'pkgs/development/ocaml-modules/camlimages')
-rw-r--r--pkgs/development/ocaml-modules/camlimages/4.2.4.nix75
1 files changed, 75 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/camlimages/4.2.4.nix b/pkgs/development/ocaml-modules/camlimages/4.2.4.nix
new file mode 100644
index 00000000000..8ed562a27e6
--- /dev/null
+++ b/pkgs/development/ocaml-modules/camlimages/4.2.4.nix
@@ -0,0 +1,75 @@
+{ stdenv
+, lib
+, fetchFromGitLab
+, ocaml
+, findlib
+, omake
+, graphicsmagick
+, libpng
+, libjpeg
+, libexif
+, libtiff
+, libXpm
+, freetype
+, giflib
+, ghostscript
+}:
+
+assert lib.versionOlder ocaml.version "4.06";
+
+stdenv.mkDerivation rec {
+  name = "ocaml${ocaml.version}-${pname}-${version}";
+  pname = "camlimages";
+  version = "4.2.4";
+
+  src = fetchFromGitLab {
+    owner = "camlspotter";
+    repo = pname;
+    rev = "c4f0ec4178fd18cb85872181965c5f020c349160";
+    sha256 = "17hvsql5dml7ialjcags8wphs7w6z88b2rgjir1382bg8vn62bkr";
+  };
+
+  nativeBuildInputs = [
+    omake
+    ocaml
+    findlib
+    graphicsmagick
+  ];
+
+  propagatedBuildInputs = [
+    libpng
+    libjpeg
+    libexif
+    libtiff
+    libXpm
+    freetype
+    giflib
+    ghostscript
+  ];
+
+  buildPhase = ''
+    runHook preBuild
+    omake
+    runHook postBuild
+  '';
+
+  installPhase = ''
+    runHook preBuild
+    omake install
+    runHook postBuild
+  '';
+
+  createFindlibDestdir = true;
+
+  meta = with lib; {
+    # 4.2.5 requires OCaml >= 4.06
+    branch = "4.2.4";
+    homepage = "https://gitlab.com/camlspotter/camlimages";
+    description = "OCaml image processing library";
+    license = licenses.lgpl2Only;
+    maintainers = [
+      maintainers.vbgl
+      maintainers.sternenseemann
+    ];
+  };
+}