emacsPackages.git-undo: use trivialBuild
This commit is contained in:
parent
15c6ee077e
commit
5e373b5f9d
1 changed files with 2 additions and 19 deletions
|
@ -4,7 +4,7 @@
|
||||||
, emacs
|
, emacs
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
trivialBuild {
|
||||||
pname = "git-undo";
|
pname = "git-undo";
|
||||||
version = "0.0.0+unstable=2019-12-21";
|
version = "0.0.0+unstable=2019-12-21";
|
||||||
|
|
||||||
|
@ -15,28 +15,11 @@ stdenv.mkDerivation {
|
||||||
sha256 = "sha256-cVkK9EF6qQyVV3uVqnBEjF8e9nEx/8ixnM8PvxqCyYE=";
|
sha256 = "sha256-cVkK9EF6qQyVV3uVqnBEjF8e9nEx/8ixnM8PvxqCyYE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
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; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jwiegley/git-undo-el";
|
homepage = "https://github.com/jwiegley/git-undo-el";
|
||||||
description = "Revert region to most recent Git-historical version";
|
description = "Revert region to most recent Git-historical version";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ leungbk ];
|
maintainers = with maintainers; [ leungbk ];
|
||||||
platforms = emacs.meta.platforms;
|
inherit (emacs.meta) platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue