mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
magit: update to version 1.2.0
This commit is contained in:
parent
d2b8b9e45a
commit
964efb4adc
@ -1,22 +1,32 @@
|
||||
{ stdenv, fetchurl, emacs, texinfo }:
|
||||
{ stdenv, fetchurl, emacs, texinfo, unzip }:
|
||||
|
||||
let
|
||||
version = "1.1.1";
|
||||
version = "1.2.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "magit-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://github.com/downloads/magit/magit/magit-${version}.tar.gz";
|
||||
sha256 = "0zp5qxippmalin2fr73w2alf2w7ilcahmybzdvgn4ch2s3dgvzcz";
|
||||
url = "https://github.com/magit/magit/zipball/${version}";
|
||||
sha256 = "1877s8ikvcb457mmljmw366h6pgg4zzx98qfazhqj8snl4yqsj4i";
|
||||
name = "magit-${version}.zip";
|
||||
};
|
||||
|
||||
buildInputs = [emacs texinfo];
|
||||
buildInputs = [ emacs texinfo unzip ];
|
||||
|
||||
configurePhase = "makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc )";
|
||||
|
||||
# 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 = {
|
||||
homepage = "https://github.com/magit/magit";
|
||||
description = "Magit, an Emacs interface to Git";
|
||||
license = "GPLv3+";
|
||||
|
||||
longDescription = ''
|
||||
With Magit, you can inspect and modify your Git repositories with
|
||||
@ -30,8 +40,6 @@ stdenv.mkDerivation {
|
||||
save you from learning Git itself.
|
||||
'';
|
||||
|
||||
license = "GPLv3+";
|
||||
homepage = "https://github.com/magit/magit";
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
maintainers = with stdenv.lib.maintainers; [ simons ludo ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user