mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
f46bfb972d
Fix fallout of #110687 (generic.nix requires stdenv).
30 lines
431 B
Nix
30 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)
|