fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{stdenv, fetchurl, cmake}:
2
3stdenv.mkDerivation rec {
4 name = "qhull-2012.1";
5
6 src = fetchurl {
7 url = "${meta.homepage}/download/${name}-src.tgz";
8 sha256 = "127zpjp6sm8c101hz239k82lpxqcqf4ksdyfqc2py2sm22kclpm3";
9 };
10
11 nativeBuildInputs = [ cmake ];
12
13 cmakeFlags = "-DMAN_INSTALL_DIR=share/man/man1 -DDOC_INSTALL_DIR=share/doc/qhull";
14
15 hardeningDisable = [ "format" ];
16
17 patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
18 sed -i 's/namespace std { struct bidirectional_iterator_tag; struct random_access_iterator_tag; }/#include <iterator>/' ./src/libqhullcpp/QhullIterator.h
19 sed -i 's/namespace std { struct bidirectional_iterator_tag; struct random_access_iterator_tag; }/#include <iterator>/' ./src/libqhullcpp/QhullLinkedList.h
20 '';
21
22 meta = {
23 homepage = http://www.qhull.org/;
24 description = "Computes the convex hull, Delaunay triangulation, Voronoi diagram and more";
25 license = stdenv.lib.licenses.free;
26 platforms = stdenv.lib.platforms.unix;
27 };
28}