2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, fixDarwinDylibNames }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qhull";
|
|
|
|
version = "2020.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qhull";
|
|
|
|
repo = "qhull";
|
2021-04-26 19:14:03 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-djUO3qzY8ch29AuhY3Bn1ajxWZ4/W70icWVrxWRAxRc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
nativeBuildInputs = [ cmake ]
|
|
|
|
++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.qhull.org/";
|
|
|
|
description = "Compute the convex hull, Delaunay triangulation, Voronoi diagram and more";
|
|
|
|
license = licenses.qhull;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
};
|
|
|
|
}
|