nixpkgs/pkgs/applications/science/geometry/tetgen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
726 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "tetgen";
version = "1.6.0";
src = fetchurl {
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=";
};
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";
homepage = "http://tetgen.org/";
2021-01-15 13:21:58 +00:00
license = lib.licenses.agpl3Plus;
platforms = lib.platforms.linux;
};
}