summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/camlimages
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-02-12 22:32:08 +0000
committerAlyssa Ross <hi@alyssa.is>2021-04-16 14:06:10 +0000
commit70e33e3ae34e799e5b077704ffa35702a190362d (patch)
treec452bb6b3588024fe8f846300dd99bc215df8e13 /pkgs/development/ocaml-modules/camlimages
parent6e3b5fd04622b4740ba10eb557d1aae1b835049d (diff)
downloadnixpkgs-70e33e3ae34e799e5b077704ffa35702a190362d.tar
nixpkgs-70e33e3ae34e799e5b077704ffa35702a190362d.tar.gz
nixpkgs-70e33e3ae34e799e5b077704ffa35702a190362d.tar.bz2
nixpkgs-70e33e3ae34e799e5b077704ffa35702a190362d.tar.lz
nixpkgs-70e33e3ae34e799e5b077704ffa35702a190362d.tar.xz
nixpkgs-70e33e3ae34e799e5b077704ffa35702a190362d.tar.zst
nixpkgs-70e33e3ae34e799e5b077704ffa35702a190362d.zip
glsurf: use current giflib
This requires bumping the version of camlimages used by glsurf to a
version that supports current giflib.  The most recent versions of
camlimages (even of 4.x) don't support ocaml 4.01 any more, so I've
upgraded to 4.1.2 here, the last version that supports ocaml 4.01 (and
which happily supports current giflib).
Diffstat (limited to 'pkgs/development/ocaml-modules/camlimages')
-rw-r--r--pkgs/development/ocaml-modules/camlimages/4.0.nix41
-rw-r--r--pkgs/development/ocaml-modules/camlimages/4.1.2.nix37
2 files changed, 37 insertions, 41 deletions
diff --git a/pkgs/development/ocaml-modules/camlimages/4.0.nix b/pkgs/development/ocaml-modules/camlimages/4.0.nix
deleted file mode 100644
index 26735b1c5d7..00000000000
--- a/pkgs/development/ocaml-modules/camlimages/4.0.nix
+++ /dev/null
@@ -1,41 +0,0 @@
-{ 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 ];
-  };
-}
diff --git a/pkgs/development/ocaml-modules/camlimages/4.1.2.nix b/pkgs/development/ocaml-modules/camlimages/4.1.2.nix
new file mode 100644
index 00000000000..437cb84d15d
--- /dev/null
+++ b/pkgs/development/ocaml-modules/camlimages/4.1.2.nix
@@ -0,0 +1,37 @@
+{ lib, stdenv, fetchFromGitLab, fetchpatch, omake, ocaml, findlib
+, graphicsmagick, ghostscript
+, freetype, giflib, libjpeg, libpng, libtiff, libXpm
+}:
+
+stdenv.mkDerivation rec {
+  pname = "camlimages";
+  version = "4.1.2";
+
+  src = fetchFromGitLab {
+    owner = "camlspotter";
+    repo = "camlimages";
+    rev = "98661d507e12ce91a51295a50f244cb8265b4439"; # no tag
+    sha256 = "0kpxj8wm2m17wjq217jzjpfgv1d7sp4w1yd1gi8ipn5rj4sid2j8";
+  };
+
+  buildInputs = [ ocaml omake findlib graphicsmagick ghostscript ];
+  propagatedBuildInputs = [ libtiff libjpeg libpng giflib freetype libXpm ];
+
+  createFindlibDestdir = true;
+
+  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 ];
+  };
+}