From 6105b711b9dca19b8671502cd2c0980ca7681b5d Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Sat, 4 May 2024 14:52:24 -0700 Subject: [PATCH] Added typos as a pre-commit hook --- build.sh | 2 +- flake.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index ac8adda..6c50bf4 100644 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ set -e # Following variables are set via sed in the buildPhase step PREFIX="" -# Intentionally overriding PATH so supressing shellcheck +# Intentionally overriding PATH so suppressing shellcheck # shellcheck disable=SC2123 PATH="" NERDFONTS="" diff --git a/flake.nix b/flake.nix index f6cc078..1eb19e3 100644 --- a/flake.nix +++ b/flake.nix @@ -42,12 +42,12 @@ pkgs.stdenvNoCC.mkDerivation rec { name = "alejandro-resume"; src = self; - propogatedBuildInputs = [pkgs.coreutils nerdfonts-hack tex]; + propagatedBuildInputs = [pkgs.coreutils nerdfonts-hack tex]; phases = ["unpackPhase" "buildPhase" "installPhase"]; buildPhase = '' cp build.sh alejandro-resume sed -i 's!PREFIX=""!PREFIX="${builtins.placeholder "out"}"!g' alejandro-resume - sed -i 's!PATH=""!PATH="${lib.makeBinPath propogatedBuildInputs}"!g' alejandro-resume + sed -i 's!PATH=""!PATH="${lib.makeBinPath propagatedBuildInputs}"!g' alejandro-resume sed -i 's!TEXVARS=""!TEXVARS="${texvars}"!g' alejandro-resume sed -i 's!NERDFONTS=""!NERDFONTS="${nerdfonts-hack}"!g' alejandro-resume ''; @@ -81,6 +81,10 @@ end-of-file-fixer.enable = true; shellcheck.enable = true; trim-trailing-whitespace.enable = true; + typos = { + enable = true; + always_run = true; + }; latexindent = { enable = true;