2008-04-06 21:43:39 +01:00
|
|
|
{ stdenv, fetchurl, nano }:
|
2005-10-13 13:32:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cvs-1.12.13";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 03:23:06 +01:00
|
|
|
url = mirror://savannah/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2;
|
2008-04-06 21:43:39 +01:00
|
|
|
sha256 = "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq";
|
2005-10-13 13:32:16 +01:00
|
|
|
};
|
2008-04-06 21:43:39 +01:00
|
|
|
|
2017-01-25 12:23:49 +00:00
|
|
|
patches = [
|
|
|
|
./getcwd-chroot.patch
|
|
|
|
./CVE-2012-0804.patch
|
2017-11-07 15:10:18 +00:00
|
|
|
./CVE-2017-12836.patch
|
2017-01-25 12:23:49 +00:00
|
|
|
];
|
2010-01-20 11:08:50 +00:00
|
|
|
|
2016-11-22 12:53:33 +00:00
|
|
|
hardeningDisable = [ "fortify" "format" ];
|
2016-02-07 19:23:40 +00:00
|
|
|
|
2010-11-05 14:35:22 +00:00
|
|
|
preConfigure = ''
|
2010-01-20 11:08:50 +00:00
|
|
|
# Apply the Debian patches.
|
2010-11-05 14:35:22 +00:00
|
|
|
for p in "debian/patches/"*; do
|
|
|
|
echo "applying \`$p' ..."
|
|
|
|
patch --verbose -p1 < "$p"
|
|
|
|
done
|
|
|
|
'';
|
2010-01-20 11:08:50 +00:00
|
|
|
|
2008-04-06 21:43:39 +01:00
|
|
|
buildInputs = [ nano ];
|
2010-10-07 14:14:17 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://cvs.nongnu.org;
|
2010-10-07 14:14:17 +01:00
|
|
|
description = "Concurrent Versions System - a source control system";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
2005-10-13 13:32:16 +01:00
|
|
|
}
|