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:
parent
47e345b5f3
commit
61ebe01a4f
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue
Block a user