diff options
-rw-r--r-- | accounts/gkleen@sif/utils/pdf2pdf.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/gkleen@sif/utils/pdf2pdf.nix b/accounts/gkleen@sif/utils/pdf2pdf.nix index aba897f0..5e9fb215 100644 --- a/accounts/gkleen@sif/utils/pdf2pdf.nix +++ b/accounts/gkleen@sif/utils/pdf2pdf.nix | |||
@@ -1,7 +1,7 @@ | |||
1 | pkgs@{ lib, resholve, zsh, ghostscript, ... }: | 1 | pkgs@{ lib, resholve, zsh, ghostscript_headless, ... }: |
2 | 2 | ||
3 | resholve.writeScriptBin "pdf2pdf" { | 3 | resholve.writeScriptBin "pdf2pdf" { |
4 | inputs = with pkgs; [ghostscript]; | 4 | inputs = with pkgs; [ghostscript_headless]; |
5 | interpreter = lib.getExe zsh; | 5 | interpreter = lib.getExe zsh; |
6 | } '' | 6 | } '' |
7 | exec gs -dPDFSETTINGS=/prepress -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dSAFER "-sOutputFile=''${2}" "''${1}" | 7 | exec gs -dPDFSETTINGS=/prepress -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dSAFER "-sOutputFile=''${2}" "''${1}" |