qhull: 2012.1 -> 2016.1 (#44773)

authored by

Orivej Desh and committed by
Orivej Desh (NixOS)
6fd962ed 75228468

+12 -18
+12 -18
pkgs/development/libraries/qhull/default.nix
··· 1 - {stdenv, fetchurl, cmake}: 1 + { stdenv, fetchFromGitHub, cmake }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "qhull-2012.1"; 4 + name = "qhull-2016.1"; 5 5 6 - src = fetchurl { 7 - url = "${meta.homepage}/download/${name}-src.tgz"; 8 - sha256 = "127zpjp6sm8c101hz239k82lpxqcqf4ksdyfqc2py2sm22kclpm3"; 6 + src = fetchFromGitHub { 7 + owner = "qhull"; 8 + repo = "qhull"; 9 + rev = "5bbc75608c817b50383a0c24c3977cc09d0bbfde"; 10 + sha256 = "0wrgqc2mih7h8fs9v5jcn9dr56afqi9bgh2w9dcvzvzvxizr9kjj"; 9 11 }; 10 12 11 13 nativeBuildInputs = [ cmake ]; 12 14 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 = { 15 + meta = with stdenv.lib; { 23 16 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; 17 + description = "Compute the convex hull, Delaunay triangulation, Voronoi diagram and more"; 18 + license = licenses.free; 19 + platforms = platforms.unix; 20 + maintainers = with maintainers; [ orivej ]; 27 21 }; 28 22 }