extendDrvArgs
pkgs.emacsPackages.elpaBuild.extendDrvArgs
Docs pulled from | This Revision | 31 minutes ago
Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.
Noogle detected
Implementation
The following is the current implementation of this function.
finalAttrs:
{
pname,
dontUnpack ? true,
meta ? { },
...
}@args:
{
elpa2nix = args.elpa2nix or ./elpa2nix.el;
inherit dontUnpack;
installPhase =
args.installPhase or ''
runHook preInstall
emacs --batch -Q -l "$elpa2nix" \
-f elpa2nix-install-package \
"$src" "$out/share/emacs/site-lisp/elpa" \
${if finalAttrs.turnCompilationWarningToError then "t" else "nil"} \
${if finalAttrs.ignoreCompilationError then "t" else "nil"}
runHook postInstall
'';
meta = {
homepage = args.src.meta.homepage or "https://elpa.gnu.org/packages/${pname}.html";
}
// meta;
}