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.
This commit is contained in:
Peter Jones 2021-06-30 07:49:08 -07:00
parent cc84f3906e
commit 46d4bb5d01
No known key found for this signature in database
GPG Key ID: 9DAFAA8D01941E49

View File

@ -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
'';