mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01: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)
|