nixpkgs/pkgs/build-support/emacs/trivial.nix
2021-01-25 18:31:47 +01:00

30 lines
422 B
Nix

# trivial builder for Emacs packages
{ lib, 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)