Merge pull request #223572 from lillycat332/add-gltfpack
meshoptimizer: init at unstable-2023-03-22
This commit is contained in:
commit
b451470ea7
3 changed files with 46 additions and 0 deletions
|
@ -8797,6 +8797,12 @@
|
|||
githubId = 3696783;
|
||||
name = "Leroy Hopson";
|
||||
};
|
||||
lillycham = {
|
||||
email = "lillycat332@gmail.com";
|
||||
github = "lillycat332";
|
||||
githubId = 54189319;
|
||||
name = "Lilly Cham";
|
||||
};
|
||||
lilyball = {
|
||||
email = "lily@sb.org";
|
||||
github = "lilyball";
|
||||
|
|
38
pkgs/development/libraries/meshoptimizer/default.nix
Normal file
38
pkgs/development/libraries/meshoptimizer/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
|
||||
let
|
||||
basis_universal = fetchFromGitHub {
|
||||
owner = "zeux";
|
||||
repo = "basis_universal";
|
||||
rev = "8903f6d69849fd782b72a551a4dd04a264434e20";
|
||||
hash = "sha256-o3dCxAAkpMoNkvkM7qD75cPn/obDc/fJ8u7KLPm1G6g=";
|
||||
};
|
||||
in stdenv.mkDerivation {
|
||||
pname = "meshoptimizer";
|
||||
version = "unstable-2023-03-22";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zeux";
|
||||
repo = "meshoptimizer";
|
||||
hash = "sha256-OWeptdnKFvTyfkz0sFCpiTI7323GfVE8vb8bNUBnslA=";
|
||||
rev = "49d9222385daf61a9ce75bb4699472408eb3df3e";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
outputs = [ "bin" "dev" "out" ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DMESHOPT_BUILD_GLTFPACK=ON"
|
||||
"-DMESHOPT_BASISU_PATH=${basis_universal}"
|
||||
] ++ lib.optional (!stdenv.hostPlatform.isStatic)
|
||||
"-DMESHOPT_BUILD_SHARED_LIBS:BOOL=ON";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mesh optimization library that makes meshes smaller and faster to render";
|
||||
homepage = "https://github.com/zeux/meshoptimizer";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.lillycham ];
|
||||
platforms = platforms.all;
|
||||
mainProgram = "gltfpack";
|
||||
};
|
||||
}
|
|
@ -22545,6 +22545,8 @@ with pkgs;
|
|||
|
||||
mergerfs-tools = callPackage ../tools/filesystems/mergerfs/tools.nix { };
|
||||
|
||||
meshoptimizer = callPackage ../development/libraries/meshoptimizer { };
|
||||
|
||||
mctc-lib = callPackage ../development/libraries/science/chemistry/mctc-lib { };
|
||||
|
||||
mstore = callPackage ../development/libraries/science/chemistry/mstore { };
|
||||
|
|
Loading…
Reference in a new issue