1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/bazaar/default.nix

36 lines
956 B
Nix
Raw Normal View History

{ stdenv, fetchurl, python2Packages
, withSFTP ? true
}:
2016-10-17 12:48:27 +01:00
python2Packages.buildPythonApplication rec {
2016-06-18 22:46:32 +01:00
version = "2.7";
release = ".0";
name = "bazaar-${version}${release}";
src = fetchurl {
2016-06-18 22:46:32 +01:00
url = "https://launchpad.net/bzr/${version}/${version}${release}/+download/bzr-${version}${release}.tar.gz";
sha256 = "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d";
};
2016-09-26 13:15:19 +01:00
doCheck = false;
propagatedBuildInputs = []
++ stdenv.lib.optionals withSFTP [ python2Packages.paramiko ];
2018-04-19 19:07:16 +01:00
patches = [
# Bazaar can't find the certificates alone
./add_certificates.patch
2018-08-01 09:46:25 +01:00
./CVE-2017-14176.patch
2018-04-19 19:07:16 +01:00
];
postPatch = ''
substituteInPlace bzrlib/transport/http/_urllib2_wrappers.py \
--subst-var-by certPath /etc/ssl/certs/ca-certificates.crt
'';
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;
};
}