1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5}:
6
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "libigl";
9 version = "2.6.0";
10
11 src = fetchFromGitHub {
12 owner = "libigl";
13 repo = "libigl";
14 rev = "v${finalAttrs.version}";
15 hash = "sha256-7Cvz/yOb5kQaIceUwyijBNplXvok5reJoJsTnvKWt4M=";
16 };
17
18 # We could also properly use CMake, but we would have to heavily patch it
19 # to avoid configure-time downloads of many things.
20 installPhase = ''
21 mkdir -p $out/include
22 cp -r include/igl $out/include
23 '';
24
25 meta = with lib; {
26 description = "Simple C++ geometry processing library";
27 homepage = "https://github.com/libigl/libigl";
28 license = licenses.mpl20;
29 maintainers = with maintainers; [ nim65s ];
30 };
31})