2012-09-24 13:25:19 +02:00
|
|
|
{ stdenv, fetchurl, emacs, texinfo, unzip }:
|
2009-06-25 16:31:20 +02:00
|
|
|
|
2010-03-23 13:29:21 +01:00
|
|
|
let
|
2012-09-24 13:25:19 +02:00
|
|
|
version = "1.2.0";
|
2010-03-23 13:29:21 +01:00
|
|
|
in
|
2009-06-25 16:31:20 +02:00
|
|
|
stdenv.mkDerivation {
|
2010-03-23 13:29:21 +01:00
|
|
|
name = "magit-${version}";
|
2009-06-25 16:31:20 +02:00
|
|
|
|
2010-05-12 11:09:55 +02:00
|
|
|
src = fetchurl {
|
2012-09-24 13:25:19 +02:00
|
|
|
url = "https://github.com/magit/magit/zipball/${version}";
|
|
|
|
sha256 = "1877s8ikvcb457mmljmw366h6pgg4zzx98qfazhqj8snl4yqsj4i";
|
|
|
|
name = "magit-${version}.zip";
|
2009-06-25 16:31:20 +02:00
|
|
|
};
|
|
|
|
|
2012-09-24 13:25:19 +02:00
|
|
|
buildInputs = [ emacs texinfo unzip ];
|
2009-06-25 16:31:20 +02:00
|
|
|
|
2011-12-26 21:24:59 +01:00
|
|
|
configurePhase = "makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc )";
|
2011-03-26 12:50:01 +01:00
|
|
|
|
2012-09-24 13:25:19 +02:00
|
|
|
# Add (require 'magit-site-init) to your ~/.emacs file to set-up magit mode.
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/etc/emacs/site-start.d/50magit.el $out/share/emacs/site-lisp/magit-site-init.el
|
|
|
|
sed -i -e 's|50magit|magit-site-init|' $out/share/emacs/site-lisp/magit-site-init.el
|
|
|
|
rmdir $out/etc/emacs/site-start.d $out/etc/emacs $out/etc
|
|
|
|
'';
|
|
|
|
|
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";
|
2012-09-24 13:25:19 +02:00
|
|
|
license = "GPLv3+";
|
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.
|
|
|
|
'';
|
|
|
|
|
2010-05-12 11:09:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2011-03-26 12:50:01 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons ludo ];
|
2009-06-25 16:31:20 +02:00
|
|
|
};
|
|
|
|
}
|