2014-10-22 11:33:12 +02:00
|
|
|
{ stdenv, fetchFromGitHub, emacs, texinfo, gitModes, git }:
|
2009-06-25 16:31:20 +02:00
|
|
|
|
2013-04-22 21:36:52 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-03 14:38:57 +01:00
|
|
|
name = "magit-90141025";
|
2009-06-25 16:31:20 +02:00
|
|
|
|
2014-10-22 11:33:12 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magit";
|
|
|
|
repo = "magit";
|
2014-11-03 14:38:57 +01:00
|
|
|
rev = "50c08522c8a3c67e0f3b821fe4df61e8bd456ff9";
|
|
|
|
sha256 = "0mzyx72pidzvla1x2qszn3c60n2j0n8i5k875c4difvd1n4p0vsk";
|
2009-06-25 16:31:20 +02:00
|
|
|
};
|
|
|
|
|
2014-10-22 11:33:12 +02:00
|
|
|
buildInputs = [ emacs texinfo git ];
|
|
|
|
propagatedUserEnvPkgs = [ gitModes ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
makeFlagsArray=(
|
|
|
|
PREFIX="$out"
|
|
|
|
EFLAGS="-L ${gitModes}/share/emacs/site-lisp"
|
2014-10-22 12:56:48 +02:00
|
|
|
lispdir="$out/share/emacs/site-lisp"
|
2014-10-22 11:33:12 +02:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2011-03-26 12:50:01 +01:00
|
|
|
|
2012-09-24 13:25:19 +02:00
|
|
|
postInstall = ''
|
2014-10-22 11:33:12 +02:00
|
|
|
mkdir -p $out/bin
|
|
|
|
mv "bin/"* $out/bin/
|
2012-09-24 13:25:19 +02:00
|
|
|
'';
|
|
|
|
|
2009-06-25 16:31:20 +02:00
|
|
|
meta = {
|
2012-09-24 13:25:19 +02:00
|
|
|
homepage = "https://github.com/magit/magit";
|
2011-03-26 12:50:01 +01:00
|
|
|
description = "Magit, an Emacs interface to Git";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2009-06-25 16:31:20 +02: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 23:44:33 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons ];
|
2009-06-25 16:31:20 +02:00
|
|
|
};
|
|
|
|
}
|