vulkan-loader: add meta.pkgConfigModules
Co-authored-by: Rodney Lorrimar <dev@rodney.id.au>
This commit is contained in:
parent
0ec43c6ebe
commit
eae3eed78f
1 changed files with 13 additions and 5 deletions
|
@ -1,14 +1,15 @@
|
|||
{ 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";
|
||||
version = "1.3.275.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KhronosGroup";
|
||||
repo = "Vulkan-Loader";
|
||||
rev = "vulkan-sdk-${version}";
|
||||
rev = "vulkan-sdk-${finalAttrs.version}";
|
||||
hash = "sha256-53PUXAWiK38ciV6oMvD7ZHdXi4RU4r0RmDWUUHU3mE0=";
|
||||
};
|
||||
|
||||
|
@ -34,12 +35,19 @@ stdenv.mkDerivation rec {
|
|||
}
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests.pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "LunarG Vulkan loader";
|
||||
homepage = "https://www.lunarg.com";
|
||||
platforms = platforms.unix ++ platforms.windows;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.ralith ];
|
||||
broken = (version != vulkan-headers.version);
|
||||
broken = finalAttrs.version != vulkan-headers.version;
|
||||
pkgConfigModules = [ "vulkan" ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue