mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
30 lines
795 B
Nix
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 ];
|
|
};
|
|
}
|