2010-05-12 11:09:55 +02:00
|
|
|
{ stdenv, fetchurl, emacs, texinfo }:
|
2009-06-25 16:31:20 +02:00
|
|
|
|
2010-03-23 13:29:21 +01:00
|
|
|
let
|
2011-03-25 13:59:09 +01:00
|
|
|
version = "1.0.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 {
|
|
|
|
url = "http://github.com/downloads/philjackson/magit/magit-${version}.tar.gz";
|
2011-03-25 13:59:09 +01:00
|
|
|
sha256 = "1hfdl90d96zin31v8x4p8zx5f0x0i5i9hccysx6q3prdgw9r6wzq";
|
2009-06-25 16:31:20 +02:00
|
|
|
};
|
|
|
|
|
2010-05-12 11:09:55 +02:00
|
|
|
buildInputs = [emacs texinfo];
|
2009-06-25 16:31:20 +02:00
|
|
|
|
2011-03-26 12:50:01 +01:00
|
|
|
configurePhase =
|
|
|
|
'' sed -i Makefile \
|
|
|
|
-e "s|^PREFIX=.*$|PREFIX=$out|g ; s|/etc/emacs/|$out/etc/emacs/|"
|
|
|
|
'';
|
|
|
|
|
2009-06-25 16:31:20 +02:00
|
|
|
meta = {
|
2011-03-26 12:50:01 +01:00
|
|
|
description = "Magit, an Emacs interface to Git";
|
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.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
2010-05-12 11:09:55 +02:00
|
|
|
homepage = "http://github.com/philjackson/magit";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|