diff options
author | Scriptkiddi <fritz@otlinghaus.it> | 2022-02-16 16:52:29 +0100 |
---|---|---|
committer | ajs124 <git@ajs124.de> | 2022-02-17 01:37:28 +0100 |
commit | c8fb08b1e4687aaca9d35bfad4c80296f54aeb2f (patch) | |
tree | cb3aead08042ed0a64951268106191b9f5677c6e /pkgs/applications/science/geometry | |
parent | 40d832cdc9e3c7db16d31051545f1fe91cd85a67 (diff) |
tetgen: also install library and headers
Diffstat (limited to 'pkgs/applications/science/geometry')
-rw-r--r-- | pkgs/applications/science/geometry/tetgen/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/applications/science/geometry/tetgen/default.nix b/pkgs/applications/science/geometry/tetgen/default.nix index 1e3c96ae8c62a..ff2b211b34d2f 100644 --- a/pkgs/applications/science/geometry/tetgen/default.nix +++ b/pkgs/applications/science/geometry/tetgen/default.nix @@ -1,18 +1,25 @@ -{lib, stdenv, fetchurl}: +{ lib, stdenv, fetchurl, cmake }: -let version = "1.6.0"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "tetgen"; - inherit version; + 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 = '' - mkdir -p $out/bin + 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 = { |