mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
33 lines
773 B
Nix
33 lines
773 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "libigl";
|
|
version = "2.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libigl";
|
|
repo = "libigl";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-/+wE3ZgqHWdLMaZZE/j7unrx10nd6sh9+JF5P0HB8i4=";
|
|
};
|
|
|
|
# We could also properly use CMake, but we would have to heavily patch it
|
|
# to avoid configure-time downloads of many things.
|
|
installPhase = ''
|
|
mkdir -p $out/include
|
|
cp -r include/igl $out/include
|
|
rm -rf $out/include/igl/opengl
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simple C++ geometry processing library";
|
|
homepage = "https://github.com/libigl/libigl";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
};
|
|
})
|