Unverified Commit dcebda8c authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

monado-vulkan-layers: init at 0-unstable-2024-02-21

parent c809c494
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d9a1b56..9a07e69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,7 @@ generate_vulkan_api_layer_manifest_at_install(
 	RELATIVE_LAYER_DIR ${LAYER_INSTALLDIR}
 	DESTINATION ${CMAKE_INSTALL_DATADIR}/vulkan/implicit_layer.d
 	COMPONENT vulkan_layer
+	ABSOLUTE_LAYER_PATH
 	)
 
 set(CPACK_COMPONENT_vulkan_layer_DISPLAY_NAME "Timeline Semaphore Vulkan Implicit Layer")
+44 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitLab,
  cmake,
  vulkan-headers,
  vulkan-loader,
}:
stdenv.mkDerivation {
  pname = "monado-vulkan-layers";
  version = "0-unstable-2024-02-21";

  src = fetchFromGitLab {
    domain = "gitlab.freedesktop.org";
    owner = "monado";
    repo = "utilities/vulkan-layers";
    rev = "ae43cdcbd25c56e3481bbc8a0ce2bfcebba9f7c2";
    sha256 = "sha256-QabYVKcenW+LQ+QSjUoQOLOQAVHdjE0YXd+1WsdzNPc=";
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    vulkan-headers
    vulkan-loader
  ];

  patches = [
    ./absolute-layer-path.patch
  ];

  meta = with lib; {
    description = "Vulkan Layers for Monado";
    homepage = "https://gitlab.freedesktop.org/monado/utilities/vulkan-layers";
    platforms = platforms.linux;
    license = licenses.boost;
    maintainers = with maintainers; [
      Scrumplex
      passivelemon
    ];
  };
}