2014-02-04 18:43:21 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, cacert }:
|
2008-01-18 11:29:58 +01:00
|
|
|
|
2010-08-12 21:53:38 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-02-04 18:43:21 +01:00
|
|
|
version = "2.6";
|
|
|
|
release = ".0";
|
2010-08-12 21:53:38 +02:00
|
|
|
name = "bazaar-${version}${release}";
|
2008-01-18 11:29:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-08-12 21:53:38 +02:00
|
|
|
url = "http://launchpad.net/bzr/${version}/${version}${release}/+download/bzr-${version}${release}.tar.gz";
|
2014-02-04 18:43:21 +01:00
|
|
|
sha256 = "1c6sj77h5f97qimjc14kr532kgc0jk3wq778xrkqi0pbh9qpk509";
|
2008-01-18 11:29:58 +01:00
|
|
|
};
|
|
|
|
|
2014-02-04 18:43:21 +01:00
|
|
|
buildInputs = [ pythonPackages.python pythonPackages.wrapPython cacert ];
|
2011-03-28 18:33:33 +02:00
|
|
|
|
2011-03-28 18:48:02 +02:00
|
|
|
# Readline support is needed by bzrtools.
|
2012-02-22 00:35:35 +01:00
|
|
|
pythonPath = [ pythonPackages.readline ];
|
2008-01-18 11:29:58 +01:00
|
|
|
|
2014-02-04 18:43:21 +01:00
|
|
|
# Bazaar can't find the certificates alone
|
|
|
|
patches = [ ./add_certificates.patch ];
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace bzrlib/transport/http/_urllib2_wrappers.py \
|
|
|
|
--subst-var-by "certPath" "${cacert}/etc/ca-bundle.crt"
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
2008-01-18 11:29:58 +01:00
|
|
|
installPhase = ''
|
|
|
|
python setup.py install --prefix=$out
|
2011-03-28 18:33:33 +02:00
|
|
|
wrapPythonPrograms
|
2008-01-18 11:29:58 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://bazaar-vcs.org/;
|
|
|
|
description = "A distributed version control system that Just Works";
|
2012-07-31 23:21:41 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-01-18 11:29:58 +01:00
|
|
|
};
|
|
|
|
}
|