nix-files/hosts/common/programs/imagemagick.nix

14 lines
550 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
sane.programs.imagemagick = {
2024-01-28 11:43:05 +00:00
sandbox.method = "bwrap";
sandbox.wrapperType = "inplace"; # /etc/ImageMagick-7/delegates.xml refers to bins by absolute path
2024-01-28 11:43:05 +00:00
sandbox.whitelistPwd = true;
sandbox.autodetectCliPaths = "existingOrParent"; #< arg formatting is complicated enough that this won't always work.
packageUnwrapped = pkgs.imagemagick.override {
ghostscriptSupport = true;
};
# suggestedPrograms = [ "ghostscript" ]; #< XXX: needed? is `ghostscriptSupport = true` alone not enough??
};
}