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