depot/third_party/nixpkgs/pkgs/development/libraries/vcg/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

29 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 ];
};
}