From 0172d3cb7cbdae03f143a4c7966c4694e69eea15 Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Fri, 8 Dec 2017 16:06:05 +0100 Subject: [PATCH] gnu: vulkan: Add vulkan-icd-loader. * gnu/packages/vulkan.scm (vulkan-icd-loader): New variable. --- gnu/packages/vulkan.scm | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 03562e45d..d8fa616f2 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -24,8 +24,11 @@ #:use-module (guix build-system cmake) #:use-module (gnu packages) #:use-module (gnu packages bison) + #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gl) #:use-module (gnu packages pkg-config) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages xorg)) (define-public spirv-headers (let ((commit "98b01515724c428d0f0a5d01deffcce0f5f5e61c") @@ -129,3 +132,37 @@ validator.") ;; Modified BSD license. See "copyright" section of ;; https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ (license license:bsd-3)))) + +(define-public vulkan-icd-loader + (package + (name "vulkan-icd-loader") + (version "1.0.61.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/" + "archive/sdk-" version ".tar.gz")) + (sha256 + (base32 + "05g60hk30sbc4rwkh7nrgqdk6hfsi4hwxs54yrysrzr18xpfb8j7")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;; No tests + #:configure-flags (list (string-append "-DCMAKE_INSTALL_LIBDIR=" + (assoc-ref %outputs "out") "/lib")))) + (inputs `(("glslang" ,glslang) + ("libxcb" ,libxcb) + ("libx11" ,libx11) + ("libxrandr" ,libxrandr) + ("mesa" ,mesa) + ("python" ,python) + ("spirv-tools" ,spirv-tools) + ("wayland" ,wayland))) + (native-inputs `(("pkg-config", pkg-config))) + (home-page (string-append "https://github.com/" + "KhronosGroup/Vulkan-LoaderAndValidationLayers")) + (synopsis "Khronos official ICD loader for Vulkan") + (description "Vulkan-ICD-Loader provides Khronos official ICD loader and +validation layers for Vulkan developers on GNU/Linux.") + (license license:asl2.0))) -- 2.15.1