Merge pull request #39130 from veprbl/pr/graphicsmagick-imagemagick-compat
Implement graphicsmagick-imagemagick-compat
This commit is contained in:
commit
118d9d7489
3 changed files with 44 additions and 4 deletions
37
pkgs/applications/graphics/graphicsmagick/compat.nix
Normal file
37
pkgs/applications/graphics/graphicsmagick/compat.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
|
|
|
@ -16152,6 +16152,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 { };
|
||||
|
@ -20548,7 +20550,9 @@ with pkgs;
|
|||
|
||||
pythia = callPackage ../development/libraries/physics/pythia { };
|
||||
|
||||
rivet = callPackage ../development/libraries/physics/rivet { };
|
||||
rivet = callPackage ../development/libraries/physics/rivet {
|
||||
imagemagick = graphicsmagick-imagemagick-compat;
|
||||
};
|
||||
|
||||
thepeg = callPackage ../development/libraries/physics/thepeg { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue