2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, eigen }:
|
2016-02-17 12:53:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "vcg";
|
2017-05-12 20:07:11 +01:00
|
|
|
version = "1.0.1";
|
2016-02-17 12:53:15 +00:00
|
|
|
|
2017-05-12 20:07:11 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cnr-isti-vclab";
|
|
|
|
repo = "vcglib";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0jh8jc8rn7rci8qr3q03q574fk2hsc3rllysck41j8xkr3rmxz2f";
|
2016-02-17 12:53:15 +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-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://vcg.isti.cnr.it/vcglib/install.html";
|
2016-02-17 12:53:15 +00:00
|
|
|
description = "C++ library for manipulation, processing and displaying with OpenGL of triangle and tetrahedral meshes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|