nixpkgs/pkgs/development/libraries/vcg/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
795 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, eigen }:
2016-02-17 12:53:15 +00:00
stdenv.mkDerivation rec {
pname = "vcg";
2023-01-19 12:47:53 +00:00
version = "2022.02";
2016-02-17 12:53:15 +00:00
src = fetchFromGitHub {
owner = "cnr-isti-vclab";
repo = "vcglib";
2023-01-19 12:47:53 +00:00
rev = version;
sha256 = "sha256-XCjbVlgE0C9UagPj4fraA7BNsM6ONKo66aKQ87gQOfE=";
2016-02-17 12:53:15 +00:00
};
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";
2016-02-17 12:53:15 +00:00
description = "C++ library for manipulation, processing and displaying with OpenGL of triangle and tetrahedral meshes";
license = licenses.gpl3;
2021-03-10 11:00:27 +00:00
platforms = platforms.all;
2016-02-17 12:53:15 +00:00
maintainers = with maintainers; [ abbradar ];
};
}