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

43 lines
1 KiB
Nix
Raw Normal View History

2016-11-16 22:50:44 +00:00
{ stdenv, fetchurl, fftw, zlib, libjpeg, libtiff, libpng, pkgconfig }:
2015-07-16 21:01:43 +01:00
stdenv.mkDerivation rec {
name = "gmic-${version}";
2017-02-10 23:28:38 +00:00
version = "1.7.9";
2015-07-16 21:01:43 +01:00
src = fetchurl {
url = "http://gmic.eu/files/source/gmic_${version}.tar.gz";
2017-02-10 23:28:38 +00:00
sha256 = "0cvi5kmcrrg5pm774ligyy33fasgsfp3mr6ingjzd99rn4710bqm";
2015-07-16 21:01:43 +01:00
};
2016-11-16 22:50:44 +00:00
nativeBuildInputs = [ pkgconfig ];
2015-07-16 21:01:43 +01:00
buildInputs = [ fftw zlib libjpeg libtiff libpng ];
sourceRoot = "${name}/src";
preBuild = ''
buildFlagsArray=( \
CURL_CFLAGS= CURL_LIBS= \
2016-09-22 02:51:07 +01:00
OPENEXR_CFLAGS= OPENEXR_LIBS= \
2015-07-16 21:01:43 +01:00
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;
2016-09-22 02:51:07 +01:00
platforms = platforms.unix;
2015-07-16 21:01:43 +01:00
};
}