From 46d4bb5d01175feefbe8f3fdaee68701801e9741 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 30 Jun 2021 07:49:08 -0700 Subject: [PATCH] elpaBuild: Delay src evaluation so it can be overridden This change allows ELPA packages to have their src attribute updated by overrideAttrs. Without this change the installPhase references the original src attribute and overriding is not possible. --- pkgs/build-support/emacs/elpa.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/emacs/elpa.nix b/pkgs/build-support/emacs/elpa.nix index 41a0670d0c8..61960ed22c6 100644 --- a/pkgs/build-support/emacs/elpa.nix +++ b/pkgs/build-support/emacs/elpa.nix @@ -28,7 +28,7 @@ import ./generic.nix { inherit lib stdenv emacs texinfo writeText; } ({ emacs --batch -Q -l ${./elpa2nix.el} \ -f elpa2nix-install-package \ - "${src}" "$out/share/emacs/site-lisp/elpa" + "$src" "$out/share/emacs/site-lisp/elpa" runHook postInstall '';