2007-11-14 22:41:01 +01:00
|
|
|
args: with args;
|
2007-04-26 18:14:01 +02:00
|
|
|
|
2007-11-14 22:41:01 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-02-20 11:29:32 +01:00
|
|
|
name = "git-1.5.4.2";
|
2007-04-26 18:14:01 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-11-14 22:41:01 +01:00
|
|
|
url = "mirror://kernel/software/scm/git/${name}.tar.bz2";
|
2008-02-20 11:29:32 +01:00
|
|
|
sha256 = "089n3da06k19gzhacsqgaamgx5hy5r50r2b4a626s87w44mj78sn";
|
2007-04-26 18:14:01 +02:00
|
|
|
};
|
|
|
|
|
2008-02-22 17:51:51 +01:00
|
|
|
buildInputs = [curl openssl zlib expat gettext]
|
|
|
|
++ (if emacs != null then [emacs] else []);
|
2007-04-26 18:14:01 +02:00
|
|
|
|
2007-11-14 22:41:01 +01:00
|
|
|
makeFlags="prefix=\${out} PERL_PATH=${perl}/bin/perl SHELL_PATH=${stdenv.shell}";
|
|
|
|
|
2008-02-22 17:51:51 +01:00
|
|
|
postInstall =
|
|
|
|
if emacs != null then
|
|
|
|
''# Install Emacs mode.
|
|
|
|
echo "installing Emacs mode..."
|
|
|
|
make install -C contrib/emacs prefix="$out"
|
2008-02-20 11:29:32 +01:00
|
|
|
|
2008-02-22 17:51:51 +01:00
|
|
|
# XXX: There are other things under `contrib' that people might want to
|
|
|
|
# install. ''
|
|
|
|
else
|
|
|
|
''echo "NOT installing Emacs mode. Set \`git.useEmacs' to \`true' in your"
|
|
|
|
echo "\`~/.nixpkgs/config.nix' file to change it."'';
|
2008-02-20 11:29:32 +01:00
|
|
|
|
2007-11-14 22:41:01 +01:00
|
|
|
meta = {
|
2008-02-20 11:29:32 +01:00
|
|
|
license = "GPLv2";
|
|
|
|
homepage = http://git.or.cz;
|
|
|
|
description = ''Git, a popular distributed version control system
|
|
|
|
designed to handle very large projects with speed
|
|
|
|
and efficiency.'';
|
2007-11-14 22:41:01 +01:00
|
|
|
};
|
2007-04-26 18:14:01 +02:00
|
|
|
}
|