mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
38 lines
777 B
Nix
38 lines
777 B
Nix
{ lib, stdenv, graphicsmagick }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "graphicsmagick-imagemagick-compat";
|
|
inherit (graphicsmagick) version;
|
|
|
|
dontUnpack = 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 = lib.licenses.free;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|