Added bazaar tools (not installed globally, just copied to share, you have to symlink them to your ~/.bazaar/plugins). Also readline support for python.
svn path=/nixpkgs/trunk/; revision=11893
This commit is contained in:
parent
f87949b0b8
commit
9d3b0a2cb7
@ -15,6 +15,11 @@ stdenv.mkDerivation {
|
|||||||
wrapProgram $out/bin/bzr --prefix PYTHONPATH : "$(toPythonPath $out)"
|
wrapProgram $out/bin/bzr --prefix PYTHONPATH : "$(toPythonPath $out)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
# If someone wants to assert python features..
|
||||||
|
inherit python;
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://bazaar-vcs.org/;
|
homepage = http://bazaar-vcs.org/;
|
||||||
description = "A distributed version control system that Just Works";
|
description = "A distributed version control system that Just Works";
|
||||||
|
23
pkgs/applications/version-management/bazaar/tools.nix
Normal file
23
pkgs/applications/version-management/bazaar/tools.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
args : with args;
|
||||||
|
|
||||||
|
if ! bazaar.python.readlineSupport then
|
||||||
|
throw "Bazaar Tools require readline support in python."
|
||||||
|
else
|
||||||
|
|
||||||
|
rec {
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://launchpad.net/bzrtools/stable/1.5.0/+download/bzrtools-1.5.0.tar.gz;
|
||||||
|
sha256 = "0lm4qhsjy3k8zp9hcahlf37v69w6lhhz2x3hjskgm3rk6b0bngjz";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [];
|
||||||
|
configureFlags = [];
|
||||||
|
|
||||||
|
/* doConfigure should be specified separately */
|
||||||
|
phaseNames = [(simplyShare "bzrtools")];
|
||||||
|
|
||||||
|
name = "bzr-tools-1.5";
|
||||||
|
meta = {
|
||||||
|
description = "Bazaar plugins.";
|
||||||
|
};
|
||||||
|
}
|
@ -2,6 +2,7 @@
|
|||||||
gdbmSupport ? true, gdbm ? null
|
gdbmSupport ? true, gdbm ? null
|
||||||
, sqlite ? null
|
, sqlite ? null
|
||||||
, db4 ? null
|
, db4 ? null
|
||||||
|
, readline ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert zlibSupport -> zlib != null;
|
assert zlibSupport -> zlib != null;
|
||||||
@ -18,6 +19,7 @@ let
|
|||||||
++ optional gdbmSupport gdbm
|
++ optional gdbmSupport gdbm
|
||||||
++ optional (sqlite != null) sqlite
|
++ optional (sqlite != null) sqlite
|
||||||
++ optional (db4 != null) db4
|
++ optional (db4 != null) db4
|
||||||
|
++ optional (readline != null) readline
|
||||||
;
|
;
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -46,7 +48,9 @@ stdenv.mkDerivation {
|
|||||||
for i in /usr /sw /opt /pkg; do
|
for i in /usr /sw /opt /pkg; do
|
||||||
substituteInPlace ./setup.py --replace $i /no-such-path
|
substituteInPlace ./setup.py --replace $i /no-such-path
|
||||||
done
|
done
|
||||||
";
|
" + (if readline != null then ''
|
||||||
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lncurses"
|
||||||
|
'' else "");
|
||||||
|
|
||||||
postInstall = "
|
postInstall = "
|
||||||
ensureDir $out/nix-support
|
ensureDir $out/nix-support
|
||||||
@ -58,6 +62,7 @@ stdenv.mkDerivation {
|
|||||||
inherit zlibSupport;
|
inherit zlibSupport;
|
||||||
sqliteSupport = sqlite != null;
|
sqliteSupport = sqlite != null;
|
||||||
db4Support = db4 != null;
|
db4Support = db4 != null;
|
||||||
|
readlineSupport = readline != null;
|
||||||
libPrefix = "python2.5";
|
libPrefix = "python2.5";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1838,6 +1838,7 @@ let pkgs = rec {
|
|||||||
python25 = python25Fun {
|
python25 = python25Fun {
|
||||||
db4 = if getConfig ["python" "db4Support"] false then db4 else null;
|
db4 = if getConfig ["python" "db4Support"] false then db4 else null;
|
||||||
sqlite = if getConfig ["python" "sqlite"] false then sqlite else null;
|
sqlite = if getConfig ["python" "sqlite"] false then sqlite else null;
|
||||||
|
readline = if getConfig ["python" "readlineSupport"] false then readline else null;
|
||||||
} null;
|
} null;
|
||||||
|
|
||||||
pyrex = pyrex095;
|
pyrex = pyrex095;
|
||||||
@ -5004,9 +5005,14 @@ let pkgs = rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bazaar = import ../applications/version-management/bazaar {
|
bazaar = import ../applications/version-management/bazaar {
|
||||||
inherit fetchurl stdenv python makeWrapper;
|
inherit fetchurl stdenv makeWrapper;
|
||||||
|
python = python25;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bazaarTools = builderDefsPackage (import ../applications/version-management/bazaar/tools.nix) {
|
||||||
|
inherit bazaar;
|
||||||
|
} null;
|
||||||
|
|
||||||
bitlbee = import ../applications/networking/instant-messengers/bitlbee {
|
bitlbee = import ../applications/networking/instant-messengers/bitlbee {
|
||||||
inherit fetchurl stdenv gnutls pkgconfig;
|
inherit fetchurl stdenv gnutls pkgconfig;
|
||||||
inherit (gtkLibs) glib;
|
inherit (gtkLibs) glib;
|
||||||
|
@ -474,4 +474,9 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
cp *.map $out/share/texmf/fonts/map/${args.name} || echo No fontmap data
|
cp *.map $out/share/texmf/fonts/map/${args.name} || echo No fontmap data
|
||||||
'') ["minInit" "defEnsureDir"];
|
'') ["minInit" "defEnsureDir"];
|
||||||
|
|
||||||
|
simplyShare = shareName: FullDepEntry (''
|
||||||
|
ensureDir $out/share
|
||||||
|
cp -r . $out/share/${shareName}
|
||||||
|
'') ["doUnpack" "defEnsureDir"];
|
||||||
|
|
||||||
}) // args
|
}) // args
|
||||||
|
Loading…
x
Reference in New Issue
Block a user