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