2018-04-12 07:13:25 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, nano }:
|
2005-10-13 14:32:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cvs-1.12.13";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 04:23:06 +02:00
|
|
|
url = mirror://savannah/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2;
|
2008-04-06 22:43:39 +02:00
|
|
|
sha256 = "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq";
|
2005-10-13 14:32:16 +02:00
|
|
|
};
|
2008-04-06 22:43:39 +02:00
|
|
|
|
2017-01-25 13:23:49 +01:00
|
|
|
patches = [
|
|
|
|
./getcwd-chroot.patch
|
|
|
|
./CVE-2012-0804.patch
|
2017-11-07 16:10:18 +01:00
|
|
|
./CVE-2017-12836.patch
|
2018-04-12 07:13:25 +02:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/Homebrew/formula-patches/24118ec737c7/cvs/vasnprintf-high-sierra-fix.diff";
|
|
|
|
sha256 = "1ql6aaia7xkfq3vqhlw5bd2z2ywka82zk01njs1b2szn699liymg";
|
|
|
|
})
|
2017-01-25 13:23:49 +01:00
|
|
|
];
|
2010-01-20 12:08:50 +01:00
|
|
|
|
2016-11-22 13:53:33 +01:00
|
|
|
hardeningDisable = [ "fortify" "format" ];
|
2016-02-07 20:23:40 +01:00
|
|
|
|
2010-11-05 15:35:22 +01:00
|
|
|
preConfigure = ''
|
2010-01-20 12:08:50 +01:00
|
|
|
# Apply the Debian patches.
|
2010-11-05 15:35:22 +01:00
|
|
|
for p in "debian/patches/"*; do
|
|
|
|
echo "applying \`$p' ..."
|
|
|
|
patch --verbose -p1 < "$p"
|
|
|
|
done
|
|
|
|
'';
|
2010-01-20 12:08:50 +01:00
|
|
|
|
2008-04-06 22:43:39 +02:00
|
|
|
buildInputs = [ nano ];
|
2010-10-07 15:14:17 +02:00
|
|
|
|
2018-04-25 05:20:18 +02:00
|
|
|
doCheck = false; # fails 1 of 1 tests
|
|
|
|
|
2018-08-16 21:44:29 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://cvs.nongnu.org;
|
2010-10-07 15:14:17 +02:00
|
|
|
description = "Concurrent Versions System - a source control system";
|
2018-08-16 21:44:29 +02:00
|
|
|
license = licenses.gpl2; # library is GPLv2, main is GPLv1
|
|
|
|
platforms = platforms.all;
|
2010-10-07 15:14:17 +02:00
|
|
|
};
|
2005-10-13 14:32:16 +02:00
|
|
|
}
|