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 ({
|
|
|
|
#preConfigure = ''
|
|
|
|
# export LISPDIR=$out/share/emacs/site-lisp
|
|
|
|
# export VERSION_SPECIFIC_LISPDIR=$out/share/emacs/site-lisp
|
|
|
|
#'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
eval "$preBuild"
|
|
|
|
|
|
|
|
emacs -L . --batch -f batch-byte-compile *.el
|
|
|
|
|
|
|
|
eval "$postBuild"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
eval "$preInstall"
|
|
|
|
|
|
|
|
LISPDIR=$out/share/emacs/site-lisp
|
|
|
|
install -d $LISPDIR
|
|
|
|
install *.el *.elc $LISPDIR
|
|
|
|
|
|
|
|
eval "$postInstall"
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|
|
|
|
// args)
|