summary refs log blame commit diff
path: root/pkgs/build-support/emacs/trivial.nix
blob: f1aa078df27208057dcc6b42d0b207d146d7cd2f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                    
                                  




         
                                    
                 
                    


                                                 
                     


                   
                      




                                      
                       



        
# 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)