[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/11: gnu: vulkan: Add spirv-tools.
From: |
Marius Bakke |
Subject: |
08/11: gnu: vulkan: Add spirv-tools. |
Date: |
Sun, 17 Dec 2017 19:26:05 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 794d740e0845763578a997bfeaae6778bab91393
Author: Rutger Helling <address@hidden>
Date: Fri Dec 8 14:56:36 2017 +0100
gnu: vulkan: Add spirv-tools.
* gnu/packages/vulkan.scm (spirv-tools): New variable.
Signed-off-by: Marius Bakke <address@hidden>
---
gnu/packages/vulkan.scm | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
index 492457f..252500a 100644
--- a/gnu/packages/vulkan.scm
+++ b/gnu/packages/vulkan.scm
@@ -19,9 +19,12 @@
(define-module (gnu packages vulkan)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
+ #:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
- #:use-module (gnu packages))
+ #:use-module (gnu packages)
+ #:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages python))
(define-public spirv-headers
(let ((commit "98b01515724c428d0f0a5d01deffcce0f5f5e61c")
@@ -63,3 +66,35 @@ and for the GLSL.std.450 extended instruction set.
(license (license:x11-style
(string-append
"https://github.com/KhronosGroup/SPIRV-Headers/blob/"
commit "/LICENSE"))))))
+
+(define-public spirv-tools
+ (package
+ (name "spirv-tools")
+ (version "2017.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
"https://github.com/KhronosGroup/SPIRV-Tools/archive/v"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "009vflaa71a7xhvmm23f4sdbcgdkl1k4facqkwsg6djha2sdpsqq"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags (list (string-append "-DCMAKE_INSTALL_LIBDIR="
+ (assoc-ref %outputs "out")
+ "/lib")
+ (string-append "-DSPIRV-Headers_SOURCE_DIR="
+ (assoc-ref %build-inputs
+ "spirv-headers")))))
+ (inputs `(("spirv-headers" ,spirv-headers)))
+ (native-inputs `(("pkg-config", pkg-config)
+ ("python" ,python)))
+ (home-page "https://github.com/KhronosGroup/SPIRV-Tools")
+ (synopsis "API and commands for processing SPIR-V modules")
+ (description
+ "The SPIR-V Tools project provides an API and commands for processing
+SPIR-V modules. The project includes an assembler, binary module parser,
+disassembler, validator, and optimizer for SPIR-V.")
+ (license license:asl2.0)))
- branch core-updates updated (cafc97e -> 01564e5), Marius Bakke, 2017/12/17
- 03/11: gnu: pulseaudio: Update to 11.1., Marius Bakke, 2017/12/17
- 01/11: gnu: mesa: Update to 17.2.7., Marius Bakke, 2017/12/17
- 02/11: gnu: ftgl: Add missing dependency on pkg-config., Marius Bakke, 2017/12/17
- 08/11: gnu: vulkan: Add spirv-tools.,
Marius Bakke <=
- 04/11: gnu: pulseaudio: Use 'modify-phases' syntax., Marius Bakke, 2017/12/17
- 09/11: gnu: vulkan: Add glslang., Marius Bakke, 2017/12/17
- 11/11: gnu: retroarch: Enable Vulkan support., Marius Bakke, 2017/12/17
- 05/11: gnu: librsvg: Update to 2.40.20., Marius Bakke, 2017/12/17
- 06/11: gnu: mesa: Enable Vulkan drivers for Intel and Radeon., Marius Bakke, 2017/12/17
- 10/11: gnu: vulkan: Add vulkan-icd-loader., Marius Bakke, 2017/12/17
- 07/11: gnu: vulkan: Add spirv-headers., Marius Bakke, 2017/12/17