depot/third_party/nixpkgs/pkgs/by-name/vu/vulkan-volk/package.nix

32 lines
671 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
vulkan-headers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "volk";
version = "1.3.296.0";
src = fetchFromGitHub {
owner = "zeux";
repo = "volk";
rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-faLszfOeFo5eAzwvnrAUDVAPCVt/F9xRUFGxC9TA8E8=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ vulkan-headers ];
cmakeFlags = [ "-DVOLK_INSTALL=1" ];
meta = with lib; {
description = " Meta loader for Vulkan API";
homepage = "https://github.com/zeux/volk";
platforms = platforms.all;
license = licenses.mit;
maintainers = with maintainers; [ k900 ];
};
})