gnu: spirv-headers: Update to 1.3.7.

* gnu/packages/vulkan.scm (spirv-headers): Update to 1.3.7.
This commit is contained in:
Rutger Helling 2019-04-23 10:55:59 +02:00
parent b2e417f3f1
commit 93c5c6d164
No known key found for this signature in database
GPG Key ID: F3A727DB44FCCA36
1 changed files with 30 additions and 34 deletions

View File

@ -41,37 +41,33 @@
#:use-module (gnu packages xorg)) #:use-module (gnu packages xorg))
(define-public spirv-headers (define-public spirv-headers
;; Keep updated in accordance with (package
;; https://github.com/google/shaderc/blob/known-good/known_good.json (name "spirv-headers")
(let ((commit "8bea0a266ac9b718aa0818d9e3a47c0b77c2cb23") (version "1.3.7")
(revision "4")) (source
(package (origin
(name "spirv-headers") (method git-fetch)
(version (string-append "0.0-" revision "." (string-take commit 9))) (uri (git-reference
(source (url "https://github.com/KhronosGroup/SPIRV-Headers")
(origin (commit version)))
(method git-fetch) (sha256
(uri (git-reference (base32
(url "https://github.com/KhronosGroup/SPIRV-Headers") "0m56smanfcczjfif4yfcqhjj4d4sc088kwg6dgia8fwdsjavdm4d"))
(commit commit))) (file-name (string-append name "-" version "-checkout"))))
(sha256 (build-system cmake-build-system)
(base32 (arguments
"01qyjghjz42hmyw9111zz20a1paf37ps39p4xbj8abjba65d8lqx")) `(#:tests? #f ;; No tests
(file-name (string-append name "-" version "-checkout")))) #:phases (modify-phases %standard-phases
(build-system cmake-build-system) (replace 'install
(arguments (lambda* (#:key outputs #:allow-other-keys)
`(#:tests? #f ;; No tests (invoke "cmake" "-E" "copy_directory"
#:phases (modify-phases %standard-phases "../source/include/spirv"
(replace 'install (string-append (assoc-ref outputs "out")
(lambda* (#:key outputs #:allow-other-keys) "/include/spirv")))))))
(invoke "cmake" "-E" "copy_directory" (home-page "https://github.com/KhronosGroup/SPIRV-Headers")
"../source/include/spirv" (synopsis "Machine-readable files from the SPIR-V Registry")
(string-append (assoc-ref outputs "out") (description
"/include/spirv"))))))) "SPIRV-Headers is a repository containing machine-readable files from
(home-page "https://github.com/KhronosGroup/SPIRV-Headers")
(synopsis "Machine-readable files from the SPIR-V Registry")
(description
"SPIRV-Headers is a repository containing machine-readable files from
the SPIR-V Registry. This includes: the SPIR-V Registry. This includes:
@itemize @itemize
@item Header files for various languages. @item Header files for various languages.
@ -79,9 +75,9 @@ the SPIR-V Registry. This includes:
and for the GLSL.std.450 extended instruction set. and for the GLSL.std.450 extended instruction set.
@item The XML registry file. @item The XML registry file.
@end itemize\n") @end itemize\n")
(license (license:x11-style (license (license:x11-style
(string-append "https://github.com/KhronosGroup/SPIRV-Headers/blob/" (string-append "https://github.com/KhronosGroup/SPIRV-Headers/blob/"
commit "/LICENSE")))))) version "/LICENSE")))))
(define-public spirv-tools (define-public spirv-tools
(package (package