Use --replace-warn instead of --replace in substituteInPlace

This commit is contained in:
Brian Leung 2024-02-22 02:06:25 -08:00
parent 7f463b6ae7
commit 9657a4d41b
No known key found for this signature in database
GPG key ID: 2D86D6A94C8BB3B1

View file

@ -34,8 +34,8 @@ let
postPatch = old.postPatch + ''
substituteInPlace lisp/loadup.el \
--replace '(emacs-repository-get-version)' '"${repoMeta.rev}"' \
--replace '(emacs-repository-get-branch)' '"master"'
--replace-warn '(emacs-repository-get-version)' '"${repoMeta.rev}"' \
--replace-warn '(emacs-repository-get-branch)' '"master"'
'' +
# XXX: Maybe remove when emacsLsp updates to use Emacs
# 29. We already have logic in upstream Nixpkgs to use
@ -65,7 +65,7 @@ let
"${super.lib.getBin self.stdenv.cc.bintools.bintools}/bin"
])));
in ''
substituteInPlace lisp/emacs-lisp/comp.el --replace \
substituteInPlace lisp/emacs-lisp/comp.el --replace-warn \
"(defcustom comp-libgccjit-reproducer nil" \
"(setq native-comp-driver-options '(${backendPath}))
(defcustom comp-libgccjit-reproducer nil"