* Added cvs2svn.

* Berkeley DB 4.5 is now the default.

svn path=/nixpkgs/trunk/; revision=8641
This commit is contained in:
Eelco Dolstra 2007-05-02 11:49:18 +00:00
parent e4aa6000e9
commit dfd401259c
3 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,25 @@
{stdenv, fetchurl, python, bsddb3, makeWrapper}:
stdenv.mkDerivation {
name = "cvs2svn-1.5.1";
src = fetchurl {
url = http://cvs2svn.tigris.org/files/documents/1462/36129/cvs2svn-1.5.1.tar.gz;
md5 = "d1e42ea51b373be0023f2b3f6b80ec01";
};
buildInputs = [python bsddb3];
buildPhase = "true";
installPhase = "
python ./setup.py install --prefix=$out
source ${makeWrapper}
mv $out/bin/cvs2svn $out/bin/.orig-cvs2svn
makeWrapper $out/bin/.orig-cvs2svn $out/bin/cvs2svn \\
--set PYTHONPATH \"$(toPythonPath $out):$(toPythonPath ${bsddb3}):$PYTHONPATH\"
";
/* !!! maybe we should absolutise the program names in
$out/lib/python2.4/site-packages/cvs2svn_lib/config.py. */
}

View file

@ -0,0 +1,12 @@
{stdenv, fetchurl, python, db4}:
stdenv.mkDerivation {
name = "bsddb3-4.5.0";
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/pybsddb/bsddb3-4.5.0.tar.gz;
sha256 = "1h09kij32iikr9racp5p7qrb4li2gf2hs0lyq6d312qarja4d45v";
};
buildInputs = [python];
buildPhase = "true";
installPhase = "python ./setup.py install --prefix=$out --berkeley-db=${db4}";
}

View file

@ -1223,7 +1223,7 @@ rec {
inherit fetchurl stdenv;
};
db4 = db44;
db4 = db45;
db44 = import ../development/libraries/db4/db4-4.4.nix {
inherit fetchurl stdenv;
@ -2024,6 +2024,10 @@ rec {
### DEVELOPMENT / PYTHON MODULES
bsddb3 = import ../development/python-modules/bsddb3 {
inherit fetchurl stdenv python db4;
};
psyco = import ../development/python-modules/psyco {
inherit fetchurl stdenv python;
};
@ -2546,6 +2550,10 @@ rec {
inherit fetchurl stdenv vim;
};
cvs2svn = import ../applications/version-management/cvs2svn {
inherit fetchurl stdenv python bsddb3 makeWrapper;
};
darcs = import ../applications/version-management/darcs {
inherit fetchurl stdenv ghc zlib ncurses curl;
};