diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/camlimages/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/camlimages/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/camlimages/default.nix b/pkgs/development/ocaml-modules/camlimages/default.nix new file mode 100644 index 00000000000..a83c7c474ac --- /dev/null +++ b/pkgs/development/ocaml-modules/camlimages/default.nix @@ -0,0 +1,32 @@ +{ 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"; + }; + + strictDeps = true; + + nativeBuildInputs = [ cppo ]; + buildInputs = [ dune-configurator 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 ]; + }; +} |