fcc03dbfc5
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
56 lines
900 B
Nix
56 lines
900 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, ninja
|
|
, pkg-config
|
|
, opencv
|
|
, openexr
|
|
, graphicsmagick
|
|
, fftw
|
|
, zlib
|
|
, libjpeg
|
|
, libtiff
|
|
, libpng
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gmic";
|
|
version = "2.9.5";
|
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://gmic.eu/files/source/gmic_${version}.tar.gz";
|
|
sha256 = "sha256-KV/Ti6mPW+FASjug6q8Qfgra8L/TIyl/Y6JwANzQreE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
fftw
|
|
zlib
|
|
libjpeg
|
|
libtiff
|
|
libpng
|
|
opencv
|
|
openexr
|
|
graphicsmagick
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_LIB_STATIC=OFF"
|
|
"-DENABLE_CURL=OFF"
|
|
"-DENABLE_DYNAMIC_LINKING=ON"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Open and full-featured framework for image processing";
|
|
homepage = "https://gmic.eu/";
|
|
license = licenses.cecill20;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|