Added codeville - a distributed revision control system with special efforts spent on merging. Heh, efforts into RCS availability seem to have side effects on Python side, too..

svn path=/nixpkgs/trunk/; revision=11891
This commit is contained in:
Michael Raskin 2008-05-26 07:47:07 +00:00
parent 82177d1bc2
commit 642ff45e22
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,23 @@
args : with args;
if (! python ? db4Support) || (! python.db4Support) then
throw ''Python DB4 support is required for codeville.''
else
rec {
src = fetchurl {
url = http://codeville.org/download/Codeville-0.8.0.tar.gz;
sha256 = "1p8zc4ijwcwf5bxl34n8d44mlxk1zhbpca68r93ywxqkqm2aqz37";
};
buildInputs = [python makeWrapper];
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = ["installPythonPackage" (makeManyWrappers ''$out/bin/*'' ''--prefix PYTHONPATH : $(toPythonPath $out)'')];
name = "codeville-" + version;
meta = {
description = "Codeville - RCS with powerful merge.";
};
}

View File

@ -1,6 +1,7 @@
{stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2,
gdbmSupport ? true, gdbm ? null
, sqlite ? null
, db4 ? null
}:
assert zlibSupport -> zlib != null;
@ -16,6 +17,7 @@ let
++ optional zlibSupport zlib
++ optional gdbmSupport gdbm
++ optional (sqlite != null) sqlite
++ optional (db4 != null) db4
;
in
@ -54,6 +56,8 @@ stdenv.mkDerivation {
passthru = {
inherit zlibSupport;
sqliteSupport = sqlite != null;
db4Support = db4 != null;
libPrefix = "python2.5";
};
}

View File

@ -1835,7 +1835,10 @@ let pkgs = rec {
python25Fun = lib.sumArgs (import ../development/interpreters/python/2.5) {
inherit fetchurl stdenv zlib bzip2 gdbm;
};
python25 = python25Fun null;
python25 = python25Fun {
db4 = if getConfig ["python" "db4Support"] false then db4 else null;
sqlite = if getConfig ["python" "sqlite"] false then sqlite else null;
} null;
pyrex = pyrex095;
@ -5140,6 +5143,11 @@ let pkgs = rec {
inherit fetchurl stdenv emacs texinfo ctags;
};
codeville = builderDefsPackage (selectVersion ../applications/version-management/codeville "0.8.0") {
python = python25;
inherit makeWrapper;
} null;
cua = import ../applications/editors/emacs-modes/cua {
inherit fetchurl stdenv;
};