ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
29 lines
431 B
Nix
29 lines
431 B
Nix
# trivial builder for Emacs packages
|
|
|
|
{ callPackage, lib, ... }@envargs:
|
|
|
|
with lib;
|
|
|
|
args:
|
|
|
|
callPackage ./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)
|