Files
nixpkgs/pkgs/by-name/li/libigl/package.nix
2026-09-16 03:13:27 +00:00

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 ];
};
})