magit: fix download url

This commit is contained in:
Mathijs Kwik 2013-04-22 21:36:52 +02:00
parent 4311ba66e0
commit 40502b492d

View File

@ -1,18 +1,17 @@
{ stdenv, fetchurl, emacs, texinfo, unzip }: { stdenv, fetchurl, emacs, texinfo }:
let let
version = "1.2.0"; version = "1.2.0";
in in
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "magit-${version}"; name = "magit-${version}";
src = fetchurl { src = fetchurl {
url = "https://github.com/magit/magit/zipball/${version}"; url = "https://github.com/downloads/magit/magit/${name}.tar.gz";
sha256 = "1877s8ikvcb457mmljmw366h6pgg4zzx98qfazhqj8snl4yqsj4i"; sha256 = "1a8vvilhd5y5vmlpsh194qpl4qlg0a1brylfscxcacpfp0cmhlzg";
name = "magit-${version}.zip";
}; };
buildInputs = [ emacs texinfo unzip ]; buildInputs = [ emacs texinfo ];
configurePhase = "makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc )"; configurePhase = "makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc )";