2016-12-14 06:03:54 -08:00
|
|
|
{ stdenv, fetchurl, python2Packages
|
|
|
|
, withSFTP ? true
|
|
|
|
}:
|
2008-01-18 02:29:58 -08:00
|
|
|
|
2016-10-17 04:48:27 -07:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2016-06-18 14:46:32 -07:00
|
|
|
version = "2.7";
|
2014-02-04 09:43:21 -08:00
|
|
|
release = ".0";
|
2010-08-12 12:53:38 -07:00
|
|
|
name = "bazaar-${version}${release}";
|
2008-01-18 02:29:58 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-06-18 14:46:32 -07:00
|
|
|
url = "https://launchpad.net/bzr/${version}/${version}${release}/+download/bzr-${version}${release}.tar.gz";
|
|
|
|
sha256 = "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d";
|
2008-01-18 02:29:58 -08:00
|
|
|
};
|
|
|
|
|
2016-09-26 05:15:19 -07:00
|
|
|
doCheck = false;
|
2008-01-18 02:29:58 -08:00
|
|
|
|
2016-12-14 06:03:54 -08:00
|
|
|
propagatedBuildInputs = []
|
|
|
|
++ stdenv.lib.optionals withSFTP [ python2Packages.paramiko ];
|
|
|
|
|
2018-04-19 11:07:16 -07:00
|
|
|
patches = [
|
|
|
|
# Bazaar can't find the certificates alone
|
|
|
|
./add_certificates.patch
|
2018-08-01 01:46:25 -07:00
|
|
|
./CVE-2017-14176.patch
|
2018-04-19 11:07:16 -07:00
|
|
|
];
|
2014-02-04 09:43:21 -08:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace bzrlib/transport/http/_urllib2_wrappers.py \
|
2015-07-30 16:30:15 -07:00
|
|
|
--subst-var-by certPath /etc/ssl/certs/ca-certificates.crt
|
2014-02-04 09:43:21 -08:00
|
|
|
'';
|
|
|
|
|
2018-09-08 05:55:41 -07:00
|
|
|
meta = with stdenv.lib; {
|
2008-01-18 02:29:58 -08:00
|
|
|
homepage = http://bazaar-vcs.org/;
|
|
|
|
description = "A distributed version control system that Just Works";
|
2018-09-08 05:55:41 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2Plus;
|
2008-01-18 02:29:58 -08:00
|
|
|
};
|
|
|
|
}
|