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";
|
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cnr-isti-vclab";
|
|
|
|
repo = "vcglib";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0jh8jc8rn7rci8qr3q03q574fk2hsc3rllysck41j8xkr3rmxz2f";
|
|
|
|
};
|
|
|
|
|
|
|
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://vcg.isti.cnr.it/vcglib/install.html";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|