2014-02-04 17:43:21 +00:00
|
|
|
{ stdenv, fetchurl, pythonPackages, cacert }:
|
2008-01-18 10:29:58 +00:00
|
|
|
|
2010-08-12 20:53:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-02-04 17:43:21 +00:00
|
|
|
version = "2.6";
|
|
|
|
release = ".0";
|
2010-08-12 20:53:38 +01:00
|
|
|
name = "bazaar-${version}${release}";
|
2008-01-18 10:29:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-08-12 20:53:38 +01:00
|
|
|
url = "http://launchpad.net/bzr/${version}/${version}${release}/+download/bzr-${version}${release}.tar.gz";
|
2014-02-04 17:43:21 +00:00
|
|
|
sha256 = "1c6sj77h5f97qimjc14kr532kgc0jk3wq778xrkqi0pbh9qpk509";
|
2008-01-18 10:29:58 +00:00
|
|
|
};
|
|
|
|
|
2014-02-04 17:43:21 +00:00
|
|
|
buildInputs = [ pythonPackages.python pythonPackages.wrapPython cacert ];
|
2011-03-28 17:33:33 +01:00
|
|
|
|
2011-03-28 17:48:02 +01:00
|
|
|
# Readline support is needed by bzrtools.
|
2012-02-21 23:35:35 +00:00
|
|
|
pythonPath = [ pythonPackages.readline ];
|
2008-01-18 10:29:58 +00:00
|
|
|
|
2014-02-04 17:43:21 +00: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 10:29:58 +00:00
|
|
|
installPhase = ''
|
|
|
|
python setup.py install --prefix=$out
|
2011-03-28 17:33:33 +01:00
|
|
|
wrapPythonPrograms
|
2008-01-18 10:29:58 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://bazaar-vcs.org/;
|
|
|
|
description = "A distributed version control system that Just Works";
|
2014-06-22 07:57:05 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-01-18 10:29:58 +00:00
|
|
|
};
|
|
|
|
}
|