2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, eigen }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vcg";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2023.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cnr-isti-vclab";
|
|
|
|
repo = "vcglib";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-U3pu1k2pCH+G4CtacaDQ9SgkFX5A9/O/qrdpgWvB1+U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ eigen ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
cp -r vcg wrap $out/include
|
|
|
|
find $out -name \*.h -exec sed -i 's,<eigenlib/,<eigen3/,g' {} \;
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://vcg.isti.cnr.it/vcglib/install.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ library for manipulation, processing and displaying with OpenGL of triangle and tetrahedral meshes";
|
|
|
|
license = licenses.gpl3;
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|