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