mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
libigl: init at 2.5.0
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
94e72a5313
commit
35fedceb8b
31
pkgs/by-name/li/libigl/package.nix
Normal file
31
pkgs/by-name/li/libigl/package.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue