diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/vulkan-headers')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/vulkan-headers/default.nix | 24 | ||||
-rwxr-xr-x | nixpkgs/pkgs/development/libraries/vulkan-headers/update.sh | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/vulkan-headers/default.nix b/nixpkgs/pkgs/development/libraries/vulkan-headers/default.nix new file mode 100644 index 000000000000..dc17404c8480 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/vulkan-headers/default.nix @@ -0,0 +1,24 @@ +{ lib, stdenv, fetchFromGitHub, cmake }: +stdenv.mkDerivation rec { + pname = "vulkan-headers"; + version = "1.3.275.0"; + + nativeBuildInputs = [ cmake ]; + + src = fetchFromGitHub { + owner = "KhronosGroup"; + repo = "Vulkan-Headers"; + rev = "vulkan-sdk-${version}"; + hash = "sha256-kBOkj7mr4stPXUCBhNJpNL3A+9BebEwrIBEIroxdH8Y="; + }; + + passthru.updateScript = ./update.sh; + + meta = with lib; { + description = "Vulkan Header files and API registry"; + homepage = "https://www.lunarg.com"; + platforms = platforms.unix ++ platforms.windows; + license = licenses.asl20; + maintainers = [ maintainers.ralith ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/vulkan-headers/update.sh b/nixpkgs/pkgs/development/libraries/vulkan-headers/update.sh new file mode 100755 index 000000000000..dd3fac2ee4dd --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/vulkan-headers/update.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p nix-update + +set -euf -o pipefail + +SDK_PACKAGES=( + "vulkan-headers" + "vulkan-loader" + "vulkan-validation-layers" + "vulkan-tools" + "vulkan-tools-lunarg" + "vulkan-extension-layer" + "vulkan-utility-libraries" + "vulkan-volk" + "spirv-headers" + "spirv-cross" + "spirv-tools" +) + +nix-update glslang --version-regex '(\d+\.\d+\.\d+)' --commit + +for P in "${SDK_PACKAGES[@]}"; do + nix-update "$P" --version-regex "(?:vulkan-sdk-)(.*)" --commit +done |