From 49a9fd3f168f836cee7f9cba43a5d841608f9d39 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Fri, 20 Sep 2024 15:20:51 +0800 Subject: [PATCH] emacs: make sure the pinned package-build is used package-build is also in MELPA. Currently, two packages depend on it. When building such a package, package-build is added to EMACSLOADPATH by the setup hook. Previously, package-initialize is called in the buildPhase of melpaBuild, which may cause package-build from MELPA to be used instead of the pinned one depending on the entries of EMACSLOADPATH. This patch removes the unneeded package-initialize to make sure the pinned package-build is used. Accidentally, this patch reduces build time of emacsPackages from 30 minutes to 24 minutes on my machine. --- pkgs/applications/editors/emacs/build-support/melpa2nix.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/applications/editors/emacs/build-support/melpa2nix.el b/pkgs/applications/editors/emacs/build-support/melpa2nix.el index 3de77dbf5e5c..91706e92f733 100644 --- a/pkgs/applications/editors/emacs/build-support/melpa2nix.el +++ b/pkgs/applications/editors/emacs/build-support/melpa2nix.el @@ -1,6 +1,3 @@ -(require 'package) -(package-initialize) - (require 'package-recipe) (require 'package-build)