mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
57 lines
905 B
Nix
57 lines
905 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, ninja
|
|
, pkg-config
|
|
, opencv3
|
|
, openexr
|
|
, graphicsmagick
|
|
, fftw
|
|
, zlib
|
|
, libjpeg
|
|
, libtiff
|
|
, libpng
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gmic";
|
|
version = "2.9.0";
|
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://gmic.eu/files/source/gmic_${version}.tar.gz";
|
|
sha256 = "1df4x1dadf5llf8r0845vr2bv4pin2079an3gk69v697kdgnjcv2";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
fftw
|
|
zlib
|
|
libjpeg
|
|
libtiff
|
|
libpng
|
|
opencv3
|
|
openexr
|
|
graphicsmagick
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_LIB_STATIC=OFF"
|
|
"-DENABLE_CURL=OFF"
|
|
"-DENABLE_DYNAMIC_LINKING=ON"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Open and full-featured framework for image processing";
|
|
homepage = "https://gmic.eu/";
|
|
license = licenses.cecill20;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|