From e64ccec7e762e326a0b8f042762abb5a3b7d53df Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Sun, 4 Aug 2024 09:45:09 +0800 Subject: [PATCH] emacs: make elpa2nix of elpaBuild consistent with melpaBuild --- pkgs/applications/editors/emacs/build-support/elpa.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/build-support/elpa.nix b/pkgs/applications/editors/emacs/build-support/elpa.nix index 48381c4239eb..5a8f0ab9e52c 100644 --- a/pkgs/applications/editors/emacs/build-support/elpa.nix +++ b/pkgs/applications/editors/emacs/build-support/elpa.nix @@ -18,12 +18,14 @@ libBuildHelper.extendMkDerivation' genericBuild (finalAttrs: { + elpa2nix = args.elpa2nix or ./elpa2nix.el; + inherit dontUnpack; installPhase = args.installPhase or '' runHook preInstall - emacs --batch -Q -l ${./elpa2nix.el} \ + emacs --batch -Q -l "$elpa2nix" \ -f elpa2nix-install-package \ "$src" "$out/share/emacs/site-lisp/elpa"