Reorder scripts

This commit is contained in:
Andreas Zweili 2022-08-08 16:21:44 +02:00
parent ca221cbc27
commit 4a476b45d9

View File

@ -1,9 +1,5 @@
{ pkgs, ... }:
let
remove-special-characters = pkgs.writeScriptBin
"remove-special-characters"
"${builtins.readFile ./remove_special_characters.sh}";
compress-pdf = pkgs.writeShellScriptBin "compress-pdf" ''
${pkgs.ghostscript}/bin/gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.5 \
@ -22,13 +18,16 @@ let
${pkgs.libheif}/bin/heif-convert $f $f.jpg
done'';
remove-special-characters = pkgs.writeScriptBin
"remove-special-characters"
"${builtins.readFile ./remove_special_characters.sh}";
in
{
environment.systemPackages = [
remove-special-characters
compress-pdf
files-to-lowercase
heif-to-jpeg
remove-special-characters
];
}