vulkan-loader: add meta.pkgConfigModules

Co-authored-by: Rodney Lorrimar <dev@rodney.id.au>
This commit is contained in:
Eldritch Cookie 2024-01-16 12:28:31 -03:00 committed by Rodney Lorrimar
parent 0ec43c6ebe
commit eae3eed78f
No known key found for this signature in database
GPG key ID: D8B75C95FB4D1143

View file

@ -1,14 +1,15 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libX11, libxcb { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libX11, libxcb
, libXrandr, wayland, moltenvk, vulkan-headers, addOpenGLRunpath }: , libXrandr, wayland, moltenvk, vulkan-headers, addOpenGLRunpath
, testers }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "vulkan-loader"; pname = "vulkan-loader";
version = "1.3.275.0"; version = "1.3.275.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "KhronosGroup"; owner = "KhronosGroup";
repo = "Vulkan-Loader"; repo = "Vulkan-Loader";
rev = "vulkan-sdk-${version}"; rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-53PUXAWiK38ciV6oMvD7ZHdXi4RU4r0RmDWUUHU3mE0="; hash = "sha256-53PUXAWiK38ciV6oMvD7ZHdXi4RU4r0RmDWUUHU3mE0=";
}; };
@ -34,12 +35,19 @@ stdenv.mkDerivation rec {
} }
''; '';
passthru = {
tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
};
meta = with lib; { meta = with lib; {
description = "LunarG Vulkan loader"; description = "LunarG Vulkan loader";
homepage = "https://www.lunarg.com"; homepage = "https://www.lunarg.com";
platforms = platforms.unix ++ platforms.windows; platforms = platforms.unix ++ platforms.windows;
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.ralith ]; maintainers = [ maintainers.ralith ];
broken = (version != vulkan-headers.version); broken = finalAttrs.version != vulkan-headers.version;
pkgConfigModules = [ "vulkan" ];
}; };
} })