1 # trivial builder for Emacs packages
3 { callPackage, lib, ... }@envargs:
6 libBuildHelper = import ./lib-build-helper.nix;
9 libBuildHelper.extendMkDerivation' (callPackage ./generic.nix envargs) (
19 # This is modified from stdenv buildPhase. foundMakefile is used in stdenv checkPhase.
20 if [[ ! ( -z "''${makeFlags-}" && -z "''${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ) ]]; then
24 emacs -l package -f package-initialize -L . --batch -f batch-byte-compile *.el
30 args.installPhase or ''
33 LISPDIR=$out/share/emacs/site-lisp
35 install *.el *.elc $LISPDIR