2018-04-18 22:53:42 +00:00
|
|
|
{ stdenv, graphicsmagick }:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "graphicsmagick-imagemagick-compat";
|
2018-04-18 22:53:42 +00:00
|
|
|
inherit (graphicsmagick) version;
|
|
|
|
|
2019-06-19 15:45:34 +00:00
|
|
|
dontUnpack = true;
|
2018-04-18 22:53:42 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|