guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/11: gnu: vulkan: Add spirv-headers.


From: Marius Bakke
Subject: 07/11: gnu: vulkan: Add spirv-headers.
Date: Sun, 17 Dec 2017 19:26:05 -0500 (EST)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 0df77274d1e1e143a54adfef96150b182977fa61
Author: Rutger Helling <address@hidden>
Date:   Fri Dec 8 13:39:16 2017 +0100

    gnu: vulkan: Add spirv-headers.
    
    * gnu/packages/vulkan.scm: Create file.
    (spirv-headers): New variable.
    * gnu/local.mk: Add vulkan.scm.
    
    Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/local.mk            |  1 +
 gnu/packages/vulkan.scm | 65 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index d0a77c0..f4a68c5 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -418,6 +418,7 @@ GNU_SYSTEM_MODULES =                                \
   %D%/packages/vim.scm                         \
   %D%/packages/virtualization.scm              \
   %D%/packages/vpn.scm                         \
+  %D%/packages/vulkan.scm                      \
   %D%/packages/w3m.scm                         \
   %D%/packages/wdiff.scm                       \
   %D%/packages/web.scm                         \
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
new file mode 100644
index 0000000..492457f
--- /dev/null
+++ b/gnu/packages/vulkan.scm
@@ -0,0 +1,65 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2017 Rutger Helling <address@hidden>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages vulkan)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system cmake)
+  #:use-module (gnu packages))
+
+(define-public spirv-headers
+  (let ((commit "98b01515724c428d0f0a5d01deffcce0f5f5e61c")
+        (revision "1"))
+    (package
+      (name "spirv-headers")
+      (version (string-append "0.0-" revision "." (string-take commit 9)))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/KhronosGroup/SPIRV-Headers";)
+               (commit commit)))
+         (sha256
+          (base32
+           "15bknwkv3xwmjs3lmkp282a1wrp0da1b4lp45i4yiav04zmqygj2"))
+         (file-name (string-append name "-" version "-checkout"))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:tests? #f ;; No tests
+         #:phases (modify-phases %standard-phases
+                    (replace 'install
+                      (lambda* (#:key outputs #:allow-other-keys)
+                        (zero? (system* "cmake" "-E" "copy_directory"
+                                        "../source/include/spirv"
+                                        (string-append (assoc-ref outputs 
"out")
+                                                       "/include/spirv"))))))))
+      (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:
address@hidden
address@hidden Header files for various languages.
address@hidden JSON files describing the grammar for the SPIR-V core 
instruction set,
+and for the GLSL.std.450 extended instruction set.
address@hidden The XML registry file.
address@hidden itemize\n")
+      (license (license:x11-style
+                (string-append 
"https://github.com/KhronosGroup/SPIRV-Headers/blob/";
+                               commit "/LICENSE"))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]