emacsPackages.sunrise-commander: use trivialBuild

This commit is contained in:
AndersonTorres 2021-09-14 23:26:13 -03:00
parent a4d539be9f
commit 5fa31a4962

View file

@ -1,10 +1,10 @@
{ lib
, stdenv
, trivialBuild
, fetchFromGitHub
, emacs
}:
stdenv.mkDerivation rec {
trivialBuild rec {
pname = "sunrise-commander";
version = "0.0.0+unstable=2021-07-22";
@ -19,19 +19,6 @@ stdenv.mkDerivation rec {
emacs
];
buildPhase = ''
runHook preBuild
emacs -q --no-splash --directory=. --batch --file=batch-byte-compile *.el
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/emacs/site-lisp
install *.el* $out/share/emacs/site-lisp
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/sunrise-commander/sunrise-commander/";
description = "Orthodox (two-pane) file manager for Emacs";