emacsPackages.apheleia: use trivialBuild

This commit is contained in:
AndersonTorres 2021-09-14 20:43:40 -03:00
parent 2383775620
commit 55eaf98813

View File

@ -1,10 +1,11 @@
{ lib
, stdenv
, trivialBuild
, fetchFromGitHub
, emacs
}:
stdenv.mkDerivation rec {
trivialBuild rec {
pname = "apheleia";
version = "0.0.0+unstable=2021-08-08";
@ -19,19 +20,6 @@ stdenv.mkDerivation rec {
emacs
];
buildPhase = ''
runHook preBuild
emacs -L . --batch -f batch-byte-compile *.el
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -d $out/share/emacs/site-lisp
install *.el *.elc $out/share/emacs/site-lisp
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/raxod502/apheleia";
description = "Asynchronous buffer reformat";