diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-07-28 12:01:06 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-07-28 12:01:06 +0200 |
commit | b1a562bee6603802a909dc33b8c01d69edbcc5b2 (patch) | |
tree | 5c8071c5540ef5b438cff9fbdcfab3eb84465bef | |
parent | a266b3c08203b648070d57d1f0339ce5cd5a0d41 (diff) | |
download | nixos-b1a562bee6603802a909dc33b8c01d69edbcc5b2.tar nixos-b1a562bee6603802a909dc33b8c01d69edbcc5b2.tar.gz nixos-b1a562bee6603802a909dc33b8c01d69edbcc5b2.tar.bz2 nixos-b1a562bee6603802a909dc33b8c01d69edbcc5b2.tar.xz nixos-b1a562bee6603802a909dc33b8c01d69edbcc5b2.zip |
...flakes
-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}" |