a7d1474023
No real function change here, but this updates the trivial and melpa builders to be formatted more consistently with the rest of the builders, and swaps `eval "$preBuild"` for the more standard `runHook preBuild`.
29 lines
430 B
Nix
29 lines
430 B
Nix
# trivial builder for Emacs packages
|
|
|
|
{ lib, stdenv, texinfo, ... }@envargs:
|
|
|
|
with lib;
|
|
|
|
args:
|
|
|
|
import ./generic.nix envargs ({
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
emacs -L . --batch -f batch-byte-compile *.el
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
LISPDIR=$out/share/emacs/site-lisp
|
|
install -d $LISPDIR
|
|
install *.el *.elc $LISPDIR
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|
|
|
|
// args)
|