default.nix#doomLocal: disable git hooks in the new way

This commit is contained in:
ckie
2022-09-11 15:41:45 +03:00
parent 1102e37e8d
commit 29ce7ebecd
2 changed files with 6 additions and 2 deletions

View File

@@ -41,7 +41,10 @@
(advice-add '+org-fix-package-h (advice-add '+org-fix-package-h
:override (lambda (&rest r))) :override (lambda (&rest r)))
;; don't try adding the git hooks ;; don't try adding the git hooks for old dooms. this function is
;; undefined in newer dooms and a CLI argument is used instead.
;;
;; kept around for backwards-compat, but this is not a priority.
(advice-add 'doom-cli--ci-deploy-hooks (advice-add 'doom-cli--ci-deploy-hooks
:override (lambda (&rest r))) :override (lambda (&rest r)))

View File

@@ -89,6 +89,7 @@ let
patches = [ patches = [
./patches/fix-paths.patch ./patches/fix-paths.patch
./patches/cli-early-init-load.patch ./patches/cli-early-init-load.patch
./patches/cli-no-quickstart.patch
]; ];
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
@@ -117,7 +118,7 @@ let
emacsPackages.overrideScope' overrides; emacsPackages.overrideScope' overrides;
emacs = emacsPackages.emacsWithPackages extraPackages; emacs = emacsPackages.emacsWithPackages extraPackages;
emacsLoadFiles = [ ./advice.el ]; emacsLoadFiles = [ ./advice.el ];
emacsArgs = [ "--" "install" ]; emacsArgs = [ "--" "install" "--no-hooks" ];
# Need to reference a store path here, as byte-compilation will bake-in # Need to reference a store path here, as byte-compilation will bake-in
# absolute path to source files. # absolute path to source files.