about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGuilhem Saurel <guilhem.saurel@laas.fr>2024-03-25 22:07:44 +0100
committerGuilhem Saurel <guilhem.saurel@laas.fr>2024-04-16 22:47:23 +0200
commit35fedceb8b3d5fc14a04e247b978f64507c78035 (patch)
tree3c1a04cd3cececec6e746437e9a87f8dde5936fc /pkgs
parent94e72a53132cbef658bb2ff2949216f47ee9ff29 (diff)
libigl: init at 2.5.0
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/li/libigl/package.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libigl/package.nix b/pkgs/by-name/li/libigl/package.nix
new file mode 100644
index 0000000000000..085915ea352f3
--- /dev/null
+++ b/pkgs/by-name/li/libigl/package.nix
@@ -0,0 +1,31 @@
+{
+  lib,
+  stdenvNoCC,
+  fetchFromGitHub,
+}:
+
+stdenvNoCC.mkDerivation (finalAttrs: {
+  pname = "libigl";
+  version = "2.5.0";
+
+  src = fetchFromGitHub {
+    owner = "libigl";
+    repo = "libigl";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-OpjkQGRiuc7kNlwgCeM4dcotTb5J+6LUn4IOe9bFbW4=";
+  };
+
+  # 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
+  '';
+
+  meta = with lib; {
+    description = "Simple C++ geometry processing library";
+    homepage = "https://github.com/libigl/libigl";
+    license = licenses.mpl20;
+    maintainers = with maintainers; [ nim65s ];
+  };
+})