nixpkgs/pkgs/tools/graphics/gmic/default.nix

56 lines
876 B
Nix
Raw Normal View History

2019-09-07 13:09:23 +01:00
{ stdenv
, fetchurl
, cmake
, ninja
, pkgconfig
, opencv3
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";
2019-11-02 23:17:52 +00:00
version = "2.7.5";
2019-09-07 13:09:23 +01:00
outputs = [ "out" "lib" "dev" "man" ];
2015-07-16 21:01:43 +01:00
src = fetchurl {
url = "https://gmic.eu/files/source/gmic_${version}.tar.gz";
2019-11-02 23:17:52 +00:00
sha256 = "008lpjm3w5hzfccam6qf0rizdg3a9cqrizhr7vrpskmbr1j451d6";
2015-07-16 21:01:43 +01:00
};
2019-09-07 13:09:23 +01:00
nativeBuildInputs = [
cmake
ninja
pkgconfig
];
2016-11-16 22:50:44 +00:00
buildInputs = [
2019-09-07 13:09:23 +01:00
fftw
zlib
libjpeg
libtiff
libpng
opencv3
2019-09-07 13:09:23 +01:00
openexr
graphicsmagick
];
2015-07-16 21:01:43 +01:00
cmakeFlags = [
"-DBUILD_LIB_STATIC=OFF"
"-DENABLE_DYNAMIC_LINKING=ON"
2019-09-07 13:09:23 +01:00
];
2015-07-16 21:01:43 +01:00
meta = with stdenv.lib; {
2019-09-07 13:09:23 +01:00
description = "Open and full-featured framework for image processing";
2015-07-16 21:01:43 +01:00
homepage = http://gmic.eu/;
license = licenses.cecill20;
2016-09-22 02:51:07 +01:00
platforms = platforms.unix;
2015-07-16 21:01:43 +01:00
};
}