about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/geometry/tetgen/default.nix
blob: b655cc48c731e2e93f59779269ce0914550c2249 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{stdenv, fetchurl}: 

let version = "1.5.0"; in
stdenv.mkDerivation {
  name = "tetgen-${version}";

  src = fetchurl {
    url = "http://wias-berlin.de/software/tetgen/1.5/src/tetgen${version}.tar.gz";
    sha256 = "1www3x2r6r7pck43ismlwy82x0j6xj2qiwvfs2pn687gsmhlh4ad";
  };

  installPhase = ''
    mkdir -p $out/bin
    cp tetgen $out/bin
  '';

  meta = {
    inherit version;
    description = "Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator";
    homepage = http://tetgen.org/;
    license = stdenv.lib.licenses.agpl3Plus;
    platforms = stdenv.lib.platforms.linux;
  };
}