Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
32 lines
753 B
Nix
32 lines
753 B
Nix
{ lib, stdenv, fetchurl, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tetgen";
|
|
version = "1.6.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://wias-berlin.de/software/tetgen/1.5/src/tetgen${version}.tar.gz";
|
|
sha256 = "sha256-h7XmHr06Rx/E8s3XEkwrEd1mOfT+sflBpdL1EQ0Fzjk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{bin,lib,include}
|
|
cp tetgen $out/bin
|
|
cp libtet.a $out/lib
|
|
cp ../tetgen.{cxx,h} $out/include
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator";
|
|
mainProgram = "tetgen";
|
|
homepage = "http://tetgen.org/";
|
|
license = lib.licenses.agpl3Plus;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|