Unverified Commit e1db7d4c authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by GitHub
Browse files

Merge pull request #256760 from amarshall/blender-pathguiding

blender: enable path guiding support; openpgl: init at 0.5.0
parents 664313df 0c4a07bf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
, potrace
, openxr-loader
, embree, gmp, libharu
, openpgl
, mesa
, runCommand
}:
@@ -58,6 +59,7 @@ stdenv.mkDerivation (finalAttrs: rec {
      potrace
      libharu
      libepoxy
      openpgl
    ]
    ++ lib.optionals waylandSupport [
      wayland wayland-protocols libffi libdecor libxkbcommon dbus
+41 −0
Original line number Diff line number Diff line
{ lib
, cmake
, fetchFromGitHub
, ninja
, stdenv
, tbb
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "openpgl";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "OpenPathGuidingLibrary";
    repo = finalAttrs.pname;
    rev = "v${finalAttrs.version}";
    hash = "sha256-dbHmGGiHQkU0KPpQYpY/o0uCWdb3L5namETdOcOREgs=";
  };

  nativeBuildInputs = [
    cmake
    ninja
  ];

  buildInputs = [
    tbb
  ];

  cmakeFlags = [
    "-DOPENPGL_BUILD_STATIC=OFF"
    "-DTBB_ROOT=${tbb.out}"
  ];

  meta = {
    description = "Intel Open Path Guiding Library";
    homepage = "https://github.com/OpenPathGuidingLibrary/openpgl";
    platforms = lib.platforms.linux;
    maintainers = [ lib.maintainers.amarshall ];
    license = lib.licenses.asl20;
  };
})