2014-01-20 15:57:04 -08:00
|
|
|
# trivial builder for Emacs packages
|
|
|
|
|
2021-01-26 06:57:21 -08:00
|
|
|
{ callPackage, lib, ... }@envargs:
|
2014-01-20 15:57:04 -08:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
args:
|
|
|
|
|
2021-01-26 06:57:21 -08:00
|
|
|
callPackage ./generic.nix envargs ({
|
2014-01-20 15:57:04 -08:00
|
|
|
buildPhase = ''
|
2018-11-26 21:23:04 -08:00
|
|
|
runHook preBuild
|
2014-01-20 15:57:04 -08:00
|
|
|
|
|
|
|
emacs -L . --batch -f batch-byte-compile *.el
|
|
|
|
|
2018-11-26 21:23:04 -08:00
|
|
|
runHook postBuild
|
2014-01-20 15:57:04 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-11-26 21:23:04 -08:00
|
|
|
runHook preInstall
|
2014-01-20 15:57:04 -08:00
|
|
|
|
|
|
|
LISPDIR=$out/share/emacs/site-lisp
|
|
|
|
install -d $LISPDIR
|
|
|
|
install *.el *.elc $LISPDIR
|
|
|
|
|
2018-11-26 21:23:04 -08:00
|
|
|
runHook postInstall
|
2014-01-20 15:57:04 -08:00
|
|
|
'';
|
|
|
|
}
|
|
|
|
|
|
|
|
// args)
|