linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / draco / default.nix
blob41ffdd16f5a9040a377a7e966b2c57a8803fdf82
1 { lib, stdenv, fetchFromGitHub, cmake
2 }:
4 stdenv.mkDerivation rec {
5   version = "1.4.1";
6   pname = "draco";
8   src = fetchFromGitHub {
9     owner = "google";
10     repo = "draco";
11     rev = version;
12     sha256 = "14ln4la52x38pf8syr7i5v4vd65ya4zij8zj5kgihah03cih0qcd";
13   };
15   nativeBuildInputs = [ cmake ];
17   cmakeFlags = [
18     # Fake these since we are building from a tarball
19     "-Ddraco_git_hash=${version}"
20     "-Ddraco_git_desc=${version}"
22     "-DBUILD_UNITY_PLUGIN=1"
23   ];
25   meta = with lib; {
26     description = "Library for compressing and decompressing 3D geometric meshes and point clouds";
27     homepage = "https://google.github.io/draco/";
28     license = licenses.asl20;
29     maintainers = with maintainers; [ jansol ];
30     platforms = platforms.all;
31   };