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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
658 B
Nix
Raw Normal View History

2024-01-17 18:40:06 +01:00
{ lib, stdenv, fetchFromGitHub, cmake, vulkan-headers }:
stdenv.mkDerivation (finalAttrs: {
pname = "volk";
version = "1.3.280.0";
2024-01-17 18:40:06 +01:00
src = fetchFromGitHub {
owner = "zeux";
repo = "volk";
rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-e4TLGRqn0taYeiRVxc9WevURjO5dsVq3RpOwZBGDknQ=";
2024-01-17 18:40:06 +01: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 ];
};
})