2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, ninja
|
2020-05-29 06:06:01 +00:00
|
|
|
, pkg-config
|
2020-11-24 20:58:05 +00:00
|
|
|
, opencv
|
2020-04-24 23:36:52 +00:00
|
|
|
, openexr
|
|
|
|
, graphicsmagick
|
|
|
|
, fftw
|
|
|
|
, zlib
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, libpng
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gmic";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "2.9.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gmic.eu/files/source/gmic_${version}.tar.gz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-lCU3SH6nIhQSMFeds81DMTaEKcDjPLOP7hsXqulVfxY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
2020-05-29 06:06:01 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fftw
|
|
|
|
zlib
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
libpng
|
2020-11-24 20:58:05 +00:00
|
|
|
opencv
|
2020-04-24 23:36:52 +00:00
|
|
|
openexr
|
|
|
|
graphicsmagick
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_LIB_STATIC=OFF"
|
2020-05-29 06:06:01 +00:00
|
|
|
"-DENABLE_CURL=OFF"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DENABLE_DYNAMIC_LINKING=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open and full-featured framework for image processing";
|
2020-05-29 06:06:01 +00:00
|
|
|
homepage = "https://gmic.eu/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.cecill20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|