2023-05-02 04:07:26 +00:00
|
|
|
{ lib, fetchFromGitLab, buildDunePackage, findlib, dune-configurator, cppo
|
2020-11-10 04:53:24 +00:00
|
|
|
, graphics, lablgtk, stdio
|
|
|
|
}:
|
2018-11-05 10:21:46 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "camlimages";
|
2020-11-10 04:53:24 +00:00
|
|
|
version = "5.0.4";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2023-05-02 04:07:26 +00:00
|
|
|
minimalOCamlVersion = "4.07";
|
2020-10-09 20:15:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "camlspotter";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-10 04:53:24 +00:00
|
|
|
sha256 = "1m2c76ghisg73dikz2ifdkrbkgiwa0hcmp21f2fm2rkbf02rq3f4";
|
2018-03-07 10:09:32 +00:00
|
|
|
};
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2024-08-08 19:38:40 +00:00
|
|
|
# stdio v0.17 compatibility; also replaces `String.lowercase` with `String.lowercase_ascii`
|
|
|
|
patches = [ ./camlimages.patch ];
|
2023-10-30 05:47:07 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2023-05-02 04:07:26 +00:00
|
|
|
buildInputs = [ dune-configurator findlib graphics lablgtk stdio ];
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2018-12-07 04:22:10 +00:00
|
|
|
meta = with lib; {
|
2018-03-07 14:17:28 +00:00
|
|
|
branch = "5.0";
|
2020-10-09 20:15:39 +00:00
|
|
|
inherit (src.meta) homepage;
|
2018-03-07 14:17:28 +00:00
|
|
|
description = "OCaml image processing library";
|
2020-10-09 20:15:39 +00:00
|
|
|
license = licenses.lgpl2;
|
2018-03-07 14:39:47 +00:00
|
|
|
maintainers = [ maintainers.vbgl maintainers.mt-caret ];
|
2018-03-07 14:17:28 +00:00
|
|
|
};
|
2018-03-07 10:09:32 +00:00
|
|
|
}
|