f1aa64fa8a
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gmic/versions. These checks were done: - built on NixOS - ran `/nix/store/7d5z4y0x7ky7j3pk5pfswlbalv3wfg62-gmic-2.2.1/bin/gmic --version` and found version 2.2.1 - ran `/nix/store/7d5z4y0x7ky7j3pk5pfswlbalv3wfg62-gmic-2.2.1/bin/gmic version` and found version 2.2.1 - found 2.2.1 with grep in /nix/store/7d5z4y0x7ky7j3pk5pfswlbalv3wfg62-gmic-2.2.1 - directory tree listing: https://gist.github.com/1ee00489ce101a45c1c33912ab4c43c0
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv, fetchurl, fftw, zlib, libjpeg, libtiff, libpng, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gmic-${version}";
|
|
version = "2.2.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://gmic.eu/files/source/gmic_${version}.tar.gz";
|
|
sha256 = "0iac1zaix2zv1dfp45ca0wk9pj6k02gf8l1vmg820z8jd12pa19w";
|
|
};
|
|
|
|
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;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|