|
|
self: super: {
|
|
|
|
|
|
# change GIT version
|
|
|
# latest supported are in: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git-and-tools/git
|
|
|
git = super.lib.overrideDerivation super.git (oldAttrs: {
|
|
|
name = "git-2.25.3";
|
|
|
src = self.fetchurl {
|
|
|
url = "https://www.kernel.org/pub/software/scm/git/git-2.25.3.tar.xz";
|
|
|
sha256 = "0yvr97cl0dvj3fwblq1mb0cp97v8hrn9l98p8b1jx8815mbsnz9h";
|
|
|
};
|
|
|
|
|
|
# patches come from: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git-and-tools/git
|
|
|
patches = [
|
|
|
./patches/git/docbook2texi.patch
|
|
|
./patches/git/git-sh-i18n.patch
|
|
|
./patches/git/ssh-path.patch
|
|
|
./patches/git/git-send-email-honor-PATH.patch
|
|
|
./patches/git/installCheck-path.patch
|
|
|
];
|
|
|
|
|
|
});
|
|
|
|
|
|
libgit2rc = super.lib.overrideDerivation super.libgit2 (oldAttrs: {
|
|
|
name = "libgit2-1.0.1";
|
|
|
version = "1.0.1";
|
|
|
|
|
|
src = self.fetchFromGitHub {
|
|
|
owner = "libgit2";
|
|
|
repo = "libgit2";
|
|
|
rev = "v1.0.1";
|
|
|
sha256 = "1cm8fvs05rj0baigs2133q5a0sm3pa234y8h6hmwhl2bz9xq3k4b";
|
|
|
};
|
|
|
|
|
|
cmakeFlags = [ "-DTHREADSAFE=ON" "-DUSE_HTTPS=no"];
|
|
|
|
|
|
buildInputs = [
|
|
|
super.zlib
|
|
|
super.libssh2
|
|
|
super.openssl
|
|
|
super.curl
|
|
|
];
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
# Override subversion derivation to
|
|
|
# - activate python bindings
|
|
|
subversionrc =
|
|
|
let
|
|
|
py3c = self.python37Packages.buildPythonPackage rec {
|
|
|
pname = "py3c";
|
|
|
version = "1.0";
|
|
|
src = self.fetchurl {
|
|
|
url = "https://files.pythonhosted.org/packages/6a/aa/9f1a69a8c71e72553b281603633e42501de932aa4d9912bccbf9a2884093/py3c-1.0.tar.gz";
|
|
|
sha256 = "1h80jqi6r64kppxb4kshsiadrgc5hwk5arp3zcki01jf4ahknjz9";
|
|
|
};
|
|
|
format = "setuptools";
|
|
|
doCheck = false;
|
|
|
buildInputs = [];
|
|
|
checkInputs = [];
|
|
|
nativeBuildInputs = [];
|
|
|
propagatedBuildInputs = [];
|
|
|
meta = {
|
|
|
license = [ ];
|
|
|
};
|
|
|
};
|
|
|
in
|
|
|
let
|
|
|
pythonWithEnv = self.python37Packages.python.buildEnv.override {
|
|
|
extraLibs = [ py3c ];
|
|
|
};
|
|
|
in
|
|
|
let
|
|
|
subversionWithPython = super.subversion.override {
|
|
|
httpSupport = true; # client must support http
|
|
|
pythonBindings = true;
|
|
|
python = pythonWithEnv;
|
|
|
};
|
|
|
|
|
|
in
|
|
|
super.lib.overrideDerivation subversionWithPython (oldAttrs: {
|
|
|
name = "subversion-1.14.0";
|
|
|
src = self.fetchurl {
|
|
|
url = "https://archive.apache.org/dist/subversion/subversion-1.14.0.tar.gz";
|
|
|
sha256 = "1l1px5kva5a13pi2rkxfgxfvypvl6bmbkdag6168fhayad3i2ggg";
|
|
|
};
|
|
|
|
|
|
## use internal lz4/utf8proc because it is stable and shipped with SVN
|
|
|
configureFlags = oldAttrs.configureFlags ++ [
|
|
|
" --with-lz4=internal"
|
|
|
" --with-utf8proc=internal"
|
|
|
];
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|