Added typos as a pre-commit hook
This commit is contained in:
parent
7c36b80afc
commit
6105b711b9
2
build.sh
2
build.sh
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
# Following variables are set via sed in the buildPhase step
|
# Following variables are set via sed in the buildPhase step
|
||||||
PREFIX=""
|
PREFIX=""
|
||||||
# Intentionally overriding PATH so supressing shellcheck
|
# Intentionally overriding PATH so suppressing shellcheck
|
||||||
# shellcheck disable=SC2123
|
# shellcheck disable=SC2123
|
||||||
PATH=""
|
PATH=""
|
||||||
NERDFONTS=""
|
NERDFONTS=""
|
||||||
|
|
|
@ -42,12 +42,12 @@
|
||||||
pkgs.stdenvNoCC.mkDerivation rec {
|
pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
name = "alejandro-resume";
|
name = "alejandro-resume";
|
||||||
src = self;
|
src = self;
|
||||||
propogatedBuildInputs = [pkgs.coreutils nerdfonts-hack tex];
|
propagatedBuildInputs = [pkgs.coreutils nerdfonts-hack tex];
|
||||||
phases = ["unpackPhase" "buildPhase" "installPhase"];
|
phases = ["unpackPhase" "buildPhase" "installPhase"];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cp build.sh alejandro-resume
|
cp build.sh alejandro-resume
|
||||||
sed -i 's!PREFIX=""!PREFIX="${builtins.placeholder "out"}"!g' 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!TEXVARS=""!TEXVARS="${texvars}"!g' alejandro-resume
|
||||||
sed -i 's!NERDFONTS=""!NERDFONTS="${nerdfonts-hack}"!g' alejandro-resume
|
sed -i 's!NERDFONTS=""!NERDFONTS="${nerdfonts-hack}"!g' alejandro-resume
|
||||||
'';
|
'';
|
||||||
|
@ -81,6 +81,10 @@
|
||||||
end-of-file-fixer.enable = true;
|
end-of-file-fixer.enable = true;
|
||||||
shellcheck.enable = true;
|
shellcheck.enable = true;
|
||||||
trim-trailing-whitespace.enable = true;
|
trim-trailing-whitespace.enable = true;
|
||||||
|
typos = {
|
||||||
|
enable = true;
|
||||||
|
always_run = true;
|
||||||
|
};
|
||||||
|
|
||||||
latexindent = {
|
latexindent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue