2014-10-22 02:33:12 -07:00
|
|
|
{ stdenv, fetchFromGitHub, emacs, texinfo, gitModes, git }:
|
2009-06-25 07:31:20 -07:00
|
|
|
|
2013-04-22 12:36:52 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-03 05:38:57 -08:00
|
|
|
name = "magit-90141025";
|
2009-06-25 07:31:20 -07:00
|
|
|
|
2014-10-22 02:33:12 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magit";
|
|
|
|
repo = "magit";
|
2014-11-03 05:38:57 -08:00
|
|
|
rev = "50c08522c8a3c67e0f3b821fe4df61e8bd456ff9";
|
|
|
|
sha256 = "0mzyx72pidzvla1x2qszn3c60n2j0n8i5k875c4difvd1n4p0vsk";
|
2009-06-25 07:31:20 -07:00
|
|
|
};
|
|
|
|
|
2014-10-22 02:33:12 -07:00
|
|
|
buildInputs = [ emacs texinfo git ];
|
|
|
|
propagatedUserEnvPkgs = [ gitModes ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
makeFlagsArray=(
|
|
|
|
PREFIX="$out"
|
|
|
|
EFLAGS="-L ${gitModes}/share/emacs/site-lisp"
|
2014-10-22 03:56:48 -07:00
|
|
|
lispdir="$out/share/emacs/site-lisp"
|
2014-10-22 02:33:12 -07:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2011-03-26 04:50:01 -07:00
|
|
|
|
2012-09-24 04:25:19 -07:00
|
|
|
postInstall = ''
|
2014-10-22 02:33:12 -07:00
|
|
|
mkdir -p $out/bin
|
|
|
|
mv "bin/"* $out/bin/
|
2012-09-24 04:25:19 -07:00
|
|
|
'';
|
|
|
|
|
2009-06-25 07:31:20 -07:00
|
|
|
meta = {
|
2012-09-24 04:25:19 -07:00
|
|
|
homepage = "https://github.com/magit/magit";
|
2011-03-26 04:50:01 -07:00
|
|
|
description = "Magit, an Emacs interface to Git";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2009-06-25 07:31:20 -07:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
With Magit, you can inspect and modify your Git repositories with
|
|
|
|
Emacs. You can review and commit the changes you have made to the
|
|
|
|
tracked files, for example, and you can browse the history of past
|
|
|
|
changes. There is support for cherry picking, reverting, merging,
|
|
|
|
rebasing, and other common Git operations.
|
|
|
|
|
|
|
|
Magit is not a complete interface to Git; it just aims to make the
|
|
|
|
most common Git operations convenient. Thus, Magit will likely not
|
|
|
|
save you from learning Git itself.
|
|
|
|
'';
|
|
|
|
|
2013-08-16 14:44:33 -07:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons ];
|
2009-06-25 07:31:20 -07:00
|
|
|
};
|
|
|
|
}
|