mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
* add mercurial
svn path=/nixpkgs/trunk/; revision=9069
This commit is contained in:
parent
33f6eb6b03
commit
681551d96c
2 changed files with 30 additions and 0 deletions
26
pkgs/applications/version-management/mercurial/default.nix
Normal file
26
pkgs/applications/version-management/mercurial/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{stdenv, fetchurl, python, makeWrapper}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mercurial-0.9.4";
|
||||
src = fetchurl {
|
||||
url = http://www.selenic.com/mercurial/release/mercurial-0.9.4.tar.gz;
|
||||
sha256 = "26996df67d508e129d2f0a264e25072764e5c2d21606e1658d77c8984e6ed64a";
|
||||
};
|
||||
|
||||
inherit makeWrapper;
|
||||
|
||||
buildInputs = [ python ];
|
||||
addInputsHook = "source $makeWrapper";
|
||||
makeFlags = "PREFIX=$(out)";
|
||||
postInstall = [
|
||||
"for i in $(cd $out/bin && ls); do"
|
||||
" mv $out/bin/$i $out/bin/.orig-$i;"
|
||||
" makeWrapper $out/bin/.orig-$i $out/bin/$i"
|
||||
" --set PYTHONPATH \"$(toPythonPath $out):$PYTHONPATH\";"
|
||||
"done"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "a fast, lightweight SCM system for very large distributed projects";
|
||||
};
|
||||
}
|
|
@ -3090,6 +3090,10 @@ rec {
|
|||
inherit fetchurl stdenv ncurses openssl;
|
||||
};
|
||||
|
||||
mercurial = import ../applications/version-management/mercurial {
|
||||
inherit fetchurl stdenv python makeWrapper;
|
||||
};
|
||||
|
||||
monodevelop = import ../applications/editors/monodevelop {
|
||||
inherit fetchurl stdenv file mono gtksourceviewsharp
|
||||
gtkmozembedsharp monodoc perl perlXMLParser pkgconfig;
|
||||
|
|
Loading…
Reference in a new issue