aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/4.0.nix41
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/default.nix29
2 files changed, 70 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/4.0.nix b/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/4.0.nix
new file mode 100644
index 000000000000..e62acc3cd63f
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/4.0.nix
@@ -0,0 +1,41 @@
+{ 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 stdenv.lib; {
+ branch = "4.0";
+ homepage = "https://bitbucket.org/camlspotter/camlimages";
+ description = "OCaml image processing library";
+ license = licenses.lgpl2;
+ maintainers = [ maintainers.vbgl ];
+ };
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/default.nix b/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/default.nix
new file mode 100644
index 000000000000..ba36cfa05b99
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/camlimages/default.nix
@@ -0,0 +1,29 @@
+{ lib, fetchFromGitLab, buildDunePackage, dune-configurator, cppo
+, graphics, lablgtk, stdio
+}:
+
+buildDunePackage rec {
+ pname = "camlimages";
+ version = "5.0.4";
+
+ useDune2 = true;
+
+ minimumOCamlVersion = "4.07";
+
+ src = fetchFromGitLab {
+ owner = "camlspotter";
+ repo = pname;
+ rev = version;
+ sha256 = "1m2c76ghisg73dikz2ifdkrbkgiwa0hcmp21f2fm2rkbf02rq3f4";
+ };
+
+ buildInputs = [ dune-configurator cppo graphics lablgtk stdio ];
+
+ meta = with lib; {
+ branch = "5.0";
+ inherit (src.meta) homepage;
+ description = "OCaml image processing library";
+ license = licenses.lgpl2;
+ maintainers = [ maintainers.vbgl maintainers.mt-caret ];
+ };
+}