about summary refs log tree commit diff
path: root/pkgs/development/libraries/vcg/default.nix
blob: 9e85ad7413d03ee4c82c80bb6d8cbe9a2c72d9fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchsvn, eigen }:

stdenv.mkDerivation rec {
  name = "vcg-2016-02-14";

  src = fetchsvn {
    url = "svn://svn.code.sf.net/p/vcg/code/trunk/vcglib";
    rev = 5688;
    sha256 = "0hkvz2d8prrjdcc7h0xhfd9hq86lmqg17ml045x4bkiciimx0w5s";
  };

  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 stdenv.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.linux;
    maintainers = with maintainers; [ abbradar ];
  };
}