nixpkgs/pkgs/development/libraries/vcg/default.nix
2023-01-19 13:47:53 +01:00

30 lines
795 B
Nix

{ lib, stdenv, fetchFromGitHub, eigen }:
stdenv.mkDerivation rec {
pname = "vcg";
version = "2022.02";
src = fetchFromGitHub {
owner = "cnr-isti-vclab";
repo = "vcglib";
rev = version;
sha256 = "sha256-XCjbVlgE0C9UagPj4fraA7BNsM6ONKo66aKQ87gQOfE=";
};
propagatedBuildInputs = [ eigen ];
installPhase = ''
mkdir -p $out/include
cp -r vcg wrap $out/include
find $out -name \*.h -exec sed -i 's,<eigenlib/,<eigen3/,g' {} \;
'';
meta = with lib; {
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;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
}