2024-01-25 14:12:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, vulkan-headers }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "volk";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.290.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zeux";
|
|
|
|
repo = "volk";
|
|
|
|
rev = "vulkan-sdk-${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-SbTBwS4mJETrXRT7QMJX9F8ukcZmzz8+1atVbB/fid4=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
})
|