Use writeShellScriptBin for inline scripts

Since those scripts aren't read from a script file they don't contain a shebang
so I can use writeShellScriptBin without a problem.
This commit is contained in:
Andreas Zweili 2022-08-08 11:57:47 +02:00
parent 47e345b5f3
commit 61ebe01a4f

View File

@ -4,7 +4,7 @@ let
"remove-special-characters"
"${builtins.readFile ./remove_special_characters.sh}";
compress-pdf = pkgs.writeScriptBin "compress-pdf" ''
compress-pdf = pkgs.writeShellScriptBin "compress-pdf" ''
${pkgs.ghostscript}/bin/gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.5 \
-dNOPAUSE \