Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, eigen }:
2
3stdenv.mkDerivation rec {
4 pname = "vcg";
5 version = "2022.02";
6
7 src = fetchFromGitHub {
8 owner = "cnr-isti-vclab";
9 repo = "vcglib";
10 rev = version;
11 sha256 = "sha256-XCjbVlgE0C9UagPj4fraA7BNsM6ONKo66aKQ87gQOfE=";
12 };
13
14 propagatedBuildInputs = [ eigen ];
15
16 installPhase = ''
17 mkdir -p $out/include
18 cp -r vcg wrap $out/include
19 find $out -name \*.h -exec sed -i 's,<eigenlib/,<eigen3/,g' {} \;
20 '';
21
22 meta = with lib; {
23 homepage = "http://vcg.isti.cnr.it/vcglib/install.html";
24 description = "C++ library for manipulation, processing and displaying with OpenGL of triangle and tetrahedral meshes";
25 license = licenses.gpl3;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ abbradar ];
28 };
29}