nixpkgs/pkgs/applications/editors/emacs-modes/magit/default.nix

46 lines
1.5 KiB
Nix
Raw Normal View History

2013-04-22 21:36:52 +02:00
{ stdenv, fetchurl, emacs, texinfo }:
let
2012-09-24 13:25:19 +02:00
version = "1.2.0";
in
2013-04-22 21:36:52 +02:00
stdenv.mkDerivation rec {
name = "magit-${version}";
src = fetchurl {
2013-04-22 21:36:52 +02:00
url = "https://github.com/downloads/magit/magit/${name}.tar.gz";
sha256 = "1a8vvilhd5y5vmlpsh194qpl4qlg0a1brylfscxcacpfp0cmhlzg";
};
2013-04-22 21:36:52 +02:00
buildInputs = [ emacs texinfo ];
configurePhase = "makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc )";
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
'';
meta = {
2012-09-24 13:25:19 +02:00
homepage = "https://github.com/magit/magit";
description = "Magit, an Emacs interface to Git";
2012-09-24 13:25:19 +02:00
license = "GPLv3+";
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.
'';
platforms = stdenv.lib.platforms.all;
2013-08-16 23:44:33 +02:00
maintainers = with stdenv.lib.maintainers; [ simons ];
};
}