nixpkgs-suyu/pkgs/by-name/vu/vulkan-volk/package.nix
K900 099029fae6 libplacebo_5, vulkan-volk: move to by-name
Fixes the pkgs/by-name check
2024-01-21 14:25:59 +03:00

26 lines
658 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, vulkan-headers }:
stdenv.mkDerivation (finalAttrs: {
pname = "volk";
version = "1.3.275.0";
src = fetchFromGitHub {
owner = "zeux";
repo = "volk";
rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-uTjLgJMGN8nOVhVIl/GNhO2jXe9ebhc9vzAwCDwfuf4=";
};
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 ];
};
})