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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
900 B
Nix
Raw Normal View History

{ lib, stdenv
2019-09-07 14:09:23 +02:00
, fetchurl
, cmake
, ninja
, 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-12-31 04:56:30 +01:00
version = "3.0.0";
2019-09-07 14:09:23 +02:00
outputs = [ "out" "lib" "dev" "man" ];
2015-07-16 22:01:43 +02:00
src = fetchurl {
url = "https://gmic.eu/files/source/gmic_${version}.tar.gz";
2021-12-31 04:56:30 +01:00
sha256 = "sha256-PwVruebb8GdK9Mjc5Z9BmBchh2Yvf7s2zGPryMG3ESA=";
2015-07-16 22:01:43 +02:00
};
2019-09-07 14:09:23 +02:00
nativeBuildInputs = [
cmake
ninja
pkg-config
2019-09-07 14:09:23 +02:00
];
2016-11-16 23:50:44 +01: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
cmakeFlags = [
"-DBUILD_LIB_STATIC=OFF"
"-DENABLE_CURL=OFF"
"-DENABLE_DYNAMIC_LINKING=ON"
2019-09-07 14:09:23 +02:00
];
2015-07-16 22:01:43 +02:00
meta = with lib; {
2019-09-07 14:09:23 +02:00
description = "Open and full-featured framework for image processing";
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
};
}