1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 17:41:12 +00:00
nixpkgs/pkgs/tools/graphics/gmic/default.nix
2016-11-17 00:06:41 +01:00

44 lines
1 KiB
Nix

{ stdenv, fetchurl, fftw, zlib, libjpeg, libtiff, libpng, pkgconfig }:
stdenv.mkDerivation rec {
name = "gmic-${version}";
version = "1.7.8";
src = fetchurl {
url = "http://gmic.eu/files/source/gmic_${version}.tar.gz";
sha256 = "1921s0n2frj8q95l8lm8was64cypnychgcgcavx9q8qljzbk4brs";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ fftw zlib libjpeg libtiff libpng ];
sourceRoot = "${name}/src";
preBuild = ''
buildFlagsArray=( \
CURL_CFLAGS= CURL_LIBS= \
OPENEXR_CFLAGS= OPENEXR_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.unix;
};
}