2008-01-28 19:28:38 +00:00
|
|
|
args: with args;
|
2007-08-08 13:36:58 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-01-28 19:28:38 +00:00
|
|
|
name = "mercurial-0.9.5";
|
2007-08-08 13:36:58 +00:00
|
|
|
src = fetchurl {
|
2008-01-28 19:28:38 +00:00
|
|
|
url = http://www.selenic.com/mercurial/release/mercurial-0.9.5.tar.gz;
|
|
|
|
sha256 = "1n34yl4z7nc3vmsgpkmqc94hsmy846ny86xgpgv3m371ljm2pq6g";
|
2007-08-08 13:36:58 +00:00
|
|
|
};
|
|
|
|
|
2008-01-18 11:28:41 +00:00
|
|
|
buildInputs = [ python makeWrapper ];
|
2007-08-08 13:36:58 +00:00
|
|
|
makeFlags = "PREFIX=$(out)";
|
2008-01-18 11:28:41 +00:00
|
|
|
postInstall = ''
|
|
|
|
for i in $(cd $out/bin && ls); do
|
|
|
|
wrapProgram $out/bin/$i \
|
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out)"
|
|
|
|
done
|
|
|
|
'';
|
2007-08-08 13:36:58 +00:00
|
|
|
|
|
|
|
meta = {
|
2008-01-18 11:28:41 +00:00
|
|
|
description = "A fast, lightweight SCM system for very large distributed projects";
|
|
|
|
homepage = http://www.selenic.com/mercurial/;
|
2007-08-08 13:36:58 +00:00
|
|
|
};
|
|
|
|
}
|