2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-02-22 10:55:15 +00:00
|
|
|
, gmic
|
|
|
|
, gmic-qt
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cimg";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "3.2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-24 00:07:29 +00:00
|
|
|
owner = "GreycLab";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "CImg";
|
|
|
|
rev = "v.${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-DFTqx4v3Hf2HyT02yBLo4n1yKPuPVz1oa2C5LsIeyCY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2021-04-26 19:14:03 +00:00
|
|
|
runHook preInstall
|
2021-10-17 02:12:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
install -dm 755 $out/include/CImg/plugins $doc/share/doc/cimg/examples
|
|
|
|
install -m 644 CImg.h $out/include/
|
|
|
|
cp -dr --no-preserve=ownership plugins/* $out/include/CImg/plugins/
|
2022-01-07 04:07:37 +00:00
|
|
|
cp -dr --no-preserve=ownership examples/* $doc/share/doc/cimg/examples/
|
2020-04-24 23:36:52 +00:00
|
|
|
cp README.txt $doc/share/doc/cimg/
|
2021-10-17 02:12:59 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
passthru.tests = {
|
|
|
|
# Need to update in lockstep.
|
|
|
|
inherit gmic gmic-qt;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-04-26 19:14:03 +00:00
|
|
|
homepage = "http://cimg.eu/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A small, open source, C++ toolkit for image processing";
|
|
|
|
longDescription = ''
|
|
|
|
CImg stands for Cool Image. It is easy to use, efficient and is intended
|
|
|
|
to be a very pleasant toolbox to design image processing algorithms in
|
|
|
|
C++. Due to its generic conception, it can cover a wide range of image
|
|
|
|
processing applications.
|
|
|
|
'';
|
|
|
|
license = licenses.cecill-c;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres maintainers.lilyinstarlight ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|