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

42 lines
1,009 B
Nix
Raw Normal View History

2015-07-16 22:01:43 +02:00
{ stdenv, fetchurl, fftw, zlib, libjpeg, libtiff, libpng }:
stdenv.mkDerivation rec {
name = "gmic-${version}";
2016-08-07 23:45:44 +02:00
version = "1.7.4";
2015-07-16 22:01:43 +02:00
src = fetchurl {
url = "http://gmic.eu/files/source/gmic_${version}.tar.gz";
2016-08-07 23:45:44 +02:00
sha256 = "1k4swqi1adq479b6zdpvy5kdpkvjkfihkj9iwgw9mgi0xdqikjry";
2015-07-16 22:01:43 +02:00
};
buildInputs = [ fftw zlib libjpeg libtiff libpng ];
sourceRoot = "${name}/src";
preBuild = ''
buildFlagsArray=( \
CURL_CFLAGS= CURL_LIBS= \
EXR_CFLAGS= EXR_LIBS= \
OPENCV_CFLAGS= OPENCV_LIBS= \
X11_CFLAGS="-Dcimg_display=0" X11_LIBS= \
cli \
)
'';
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
cp -v gmic $out/bin/
cp -v ../man/gmic.1.gz $out/share/man/man1/
'';
meta = with stdenv.lib; {
description = "G'MIC is an open and full-featured framework for image processing";
homepage = http://gmic.eu/;
license = licenses.cecill20;
maintainers = [ maintainers.rycee ];
platforms = platforms.linux;
2015-07-16 22:01:43 +02:00
};
}