2022-02-16 15:52:29 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2010-08-12 10:59:05 +00:00
|
|
|
|
2022-02-16 15:52:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "tetgen";
|
2022-02-16 15:52:29 +00:00
|
|
|
version = "1.6.0";
|
2010-08-12 10:59:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-05-22 09:08:53 +00:00
|
|
|
url = "http://wias-berlin.de/software/tetgen/1.5/src/tetgen${version}.tar.gz";
|
2021-03-10 00:33:18 +00:00
|
|
|
sha256 = "sha256-h7XmHr06Rx/E8s3XEkwrEd1mOfT+sflBpdL1EQ0Fzjk=";
|
2010-08-12 10:59:05 +00:00
|
|
|
};
|
|
|
|
|
2022-02-16 15:52:29 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2010-08-12 10:59:05 +00:00
|
|
|
installPhase = ''
|
2022-02-16 15:52:29 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/{bin,lib,include}
|
2010-08-12 10:59:05 +00:00
|
|
|
cp tetgen $out/bin
|
2022-02-16 15:52:29 +00:00
|
|
|
cp libtet.a $out/lib
|
|
|
|
cp ../tetgen.{cxx,h} $out/include
|
|
|
|
|
|
|
|
runHook postInstall
|
2010-08-12 10:59:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://tetgen.org/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.agpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2010-08-12 10:59:05 +00:00
|
|
|
};
|
|
|
|
}
|