graphicsmagick-imagemagick-compat: init at 1.3.28

This commit is contained in:
Dmitry Kalinkin 2018-04-18 18:53:42 -04:00 committed by Matthew Bauer
parent fba7c3adf8
commit 9b7d3f10e4
3 changed files with 41 additions and 3 deletions

View File

@ -0,0 +1,37 @@
{ stdenv, graphicsmagick }:
stdenv.mkDerivation rec {
name = "graphicsmagick-imagemagick-compat-${version}";
inherit (graphicsmagick) version;
unpackPhase = "true";
buildPhase = "true";
utils = [
"composite"
"conjure"
"convert"
"identify"
"mogrify"
"montage"
"animate"
"display"
"import"
];
# TODO: symlink libraries?
installPhase = ''
mkdir -p "$out"/bin
mkdir -p "$out"/share/man/man1
for util in ''${utils[@]}; do
ln -s ${graphicsmagick}/bin/gm "$out/bin/$util"
ln -s ${graphicsmagick}/share/man/man1/gm.1.gz "$out/share/man/man1/$util.1.gz"
done
'';
meta = {
description = "ImageMagick interface for GraphicsMagick";
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -2,10 +2,9 @@
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz, libX11
, libwebp, quantumdepth ? 8, fixDarwinDylibNames }:
let version = "1.3.29"; in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "graphicsmagick-${version}";
version = "1.3.29";
src = fetchurl {
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.xz";

View File

@ -16142,6 +16142,8 @@ with pkgs;
graphicsmagick = callPackage ../applications/graphics/graphicsmagick { };
graphicsmagick_q16 = callPackage ../applications/graphics/graphicsmagick { quantumdepth = 16; };
graphicsmagick-imagemagick-compat = callPackage ../applications/graphics/graphicsmagick/compat.nix { };
grisbi = callPackage ../applications/office/grisbi { gtk = gtk2; };
gtkpod = callPackage ../applications/audio/gtkpod { };