nixpkgs/pkgs/applications/version-management/cvs/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

33 lines
746 B
Nix

{ stdenv, fetchurl, nano }:
stdenv.mkDerivation {
name = "cvs-1.12.13";
src = fetchurl {
url = mirror://savannah/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2;
sha256 = "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq";
};
patches = [ ./getcwd-chroot.patch ];
hardeningDisable = [ "format" ];
preConfigure = ''
# Apply the Debian patches.
for p in "debian/patches/"*; do
echo "applying \`$p' ..."
patch --verbose -p1 < "$p"
done
'';
buildInputs = [ nano ];
meta = {
homepage = "http://cvs.nongnu.org";
description = "Concurrent Versions System - a source control system";
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}