nixpkgs/pkgs/development/libraries/qhull/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

23 lines
577 B
Nix

{stdenv, fetchurl, cmake}:
stdenv.mkDerivation rec {
name = "qhull-2012.1";
src = fetchurl {
url = "${meta.homepage}/download/${name}-src.tgz";
sha256 = "127zpjp6sm8c101hz239k82lpxqcqf4ksdyfqc2py2sm22kclpm3";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = "-DMAN_INSTALL_DIR=share/man/man1 -DDOC_INSTALL_DIR=share/doc/qhull";
hardeningDisable = [ "format" ];
meta = {
homepage = http://www.qhull.org/;
description = "Computes the convex hull, Delaunay triangulation, Voronoi diagram and more";
license = stdenv.lib.licenses.free;
};
}