2019-09-07 12:09:23 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, ninja
|
2020-05-25 14:11:30 +00:00
|
|
|
, pkg-config
|
2019-11-27 01:07:35 +00:00
|
|
|
, opencv3
|
2019-09-07 12:09:23 +00:00
|
|
|
, openexr
|
|
|
|
, graphicsmagick
|
|
|
|
, fftw
|
|
|
|
, zlib
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, libpng
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "gmic";
|
2020-06-16 01:35:17 +00:00
|
|
|
version = "2.9.1";
|
2018-04-29 04:05:04 +00:00
|
|
|
|
2019-09-07 12:09:23 +00:00
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
2015-07-16 20:01:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://gmic.eu/files/source/gmic_${version}.tar.gz";
|
2020-06-16 01:35:17 +00:00
|
|
|
sha256 = "13axx7nwchn6ysgpvlw3fib474q4nrwv3qn20g3q03ldid0xvjah";
|
2015-07-16 20:01:43 +00:00
|
|
|
};
|
|
|
|
|
2019-09-07 12:09:23 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
2020-05-25 14:11:30 +00:00
|
|
|
pkg-config
|
2019-09-07 12:09:23 +00:00
|
|
|
];
|
2016-11-16 22:50:44 +00:00
|
|
|
|
2018-04-29 04:05:04 +00:00
|
|
|
buildInputs = [
|
2019-09-07 12:09:23 +00:00
|
|
|
fftw
|
|
|
|
zlib
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
libpng
|
2019-11-27 01:07:35 +00:00
|
|
|
opencv3
|
2019-09-07 12:09:23 +00:00
|
|
|
openexr
|
|
|
|
graphicsmagick
|
|
|
|
];
|
2015-07-16 20:01:43 +00:00
|
|
|
|
2018-04-29 04:05:04 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_LIB_STATIC=OFF"
|
2020-05-25 14:11:30 +00:00
|
|
|
"-DENABLE_CURL=OFF"
|
2018-04-29 04:05:04 +00:00
|
|
|
"-DENABLE_DYNAMIC_LINKING=ON"
|
2019-09-07 12:09:23 +00:00
|
|
|
];
|
2015-07-16 20:01:43 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-09-07 12:09:23 +00:00
|
|
|
description = "Open and full-featured framework for image processing";
|
2020-05-25 14:11:30 +00:00
|
|
|
homepage = "https://gmic.eu/";
|
2015-07-16 20:01:43 +00:00
|
|
|
license = licenses.cecill20;
|
2016-09-22 01:51:07 +00:00
|
|
|
platforms = platforms.unix;
|
2015-07-16 20:01:43 +00:00
|
|
|
};
|
|
|
|
}
|