Merge pull request #160340 from helsinki-systems/tetgen

tetgen: also install library and headers
This commit is contained in:
ajs124 2022-02-17 01:57:18 +01:00 committed by GitHub
commit 80160499bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {