2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cimg";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dtschump";
|
|
|
|
repo = "CImg";
|
|
|
|
rev = "v.${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-laLi3ks5r0C61LDoCEgVqmqZ7/C18qQKxPm4zmQrw78=";
|
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
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|