2017-12-08 13:39:16 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2019-01-10 11:42:13 +01:00
|
|
|
;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
|
2019-09-11 20:54:34 +02:00
|
|
|
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-03-17 22:08:34 +01:00
|
|
|
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
|
2017-12-08 13:39:16 +01:00
|
|
|
;;;
|
|
|
|
;;; 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)
|
2017-12-08 14:56:36 +01:00
|
|
|
#:use-module (guix download)
|
2017-12-08 13:39:16 +01:00
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (guix build-system cmake)
|
2018-06-11 11:14:28 +02:00
|
|
|
#:use-module (guix build-system gnu)
|
2018-01-31 15:26:18 +01:00
|
|
|
#:use-module (guix build-system meson)
|
2017-12-08 14:56:36 +01:00
|
|
|
#:use-module (gnu packages)
|
2018-06-11 11:14:28 +02:00
|
|
|
#:use-module (gnu packages autotools)
|
2017-12-14 23:03:02 +01:00
|
|
|
#:use-module (gnu packages bison)
|
2018-06-11 10:08:50 +02:00
|
|
|
#:use-module (gnu packages check)
|
2018-01-31 15:26:18 +01:00
|
|
|
#:use-module (gnu packages cmake)
|
2017-12-08 16:06:05 +01:00
|
|
|
#:use-module (gnu packages freedesktop)
|
2019-03-06 08:59:00 +01:00
|
|
|
#:use-module (gnu packages gcc)
|
2018-06-11 11:14:28 +02:00
|
|
|
#:use-module (gnu packages gettext)
|
2017-12-08 16:06:05 +01:00
|
|
|
#:use-module (gnu packages gl)
|
2017-12-08 14:56:36 +01:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-12-08 16:06:05 +01:00
|
|
|
#:use-module (gnu packages python)
|
2018-06-11 11:14:28 +02:00
|
|
|
#:use-module (gnu packages wine)
|
2017-12-08 16:06:05 +01:00
|
|
|
#:use-module (gnu packages xorg))
|
2017-12-08 13:39:16 +01:00
|
|
|
|
|
|
|
(define-public spirv-headers
|
2019-04-23 10:55:59 +02:00
|
|
|
(package
|
|
|
|
(name "spirv-headers")
|
|
|
|
(version "1.3.7")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/KhronosGroup/SPIRV-Headers")
|
|
|
|
(commit version)))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0m56smanfcczjfif4yfcqhjj4d4sc088kwg6dgia8fwdsjavdm4d"))
|
2019-09-11 20:54:34 +02:00
|
|
|
(file-name (git-file-name name version))))
|
2019-04-23 10:55:59 +02:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ;; No tests
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(invoke "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
|
2017-12-08 13:39:16 +01:00
|
|
|
the SPIR-V Registry. This includes:
|
|
|
|
@itemize
|
|
|
|
@item Header files for various languages.
|
|
|
|
@item JSON files describing the grammar for the SPIR-V core instruction set,
|
|
|
|
and for the GLSL.std.450 extended instruction set.
|
|
|
|
@item The XML registry file.
|
|
|
|
@end itemize\n")
|
2019-04-23 10:55:59 +02:00
|
|
|
(license (license:x11-style
|
|
|
|
(string-append "https://github.com/KhronosGroup/SPIRV-Headers/blob/"
|
|
|
|
version "/LICENSE")))))
|
2017-12-08 14:56:36 +01:00
|
|
|
|
|
|
|
(define-public spirv-tools
|
2019-03-06 08:59:00 +01:00
|
|
|
(package
|
|
|
|
(name "spirv-tools")
|
|
|
|
(version "2019.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/KhronosGroup/SPIRV-Tools")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0vddjzhkrhrm3l3i57nxmq2smv3r1s0ka5ff2kziaahr4hqb479r"))
|
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; FIXME: Tests fail.
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'fixgcc7
|
|
|
|
(lambda _
|
|
|
|
(unsetenv "C_INCLUDE_PATH")
|
|
|
|
(unsetenv "CPLUS_INCLUDE_PATH")
|
|
|
|
#t)))
|
|
|
|
#:configure-flags (list (string-append "-DSPIRV-Headers_SOURCE_DIR="
|
|
|
|
(assoc-ref %build-inputs "spirv-headers")))))
|
|
|
|
(inputs `(("spirv-headers" ,spirv-headers)))
|
|
|
|
(native-inputs `(("gcc" ,gcc-7)
|
|
|
|
("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)))
|
2017-12-14 23:03:02 +01:00
|
|
|
|
|
|
|
(define-public glslang
|
2019-03-06 08:45:27 +01:00
|
|
|
(package
|
|
|
|
(name "glslang")
|
2019-05-17 12:21:28 +02:00
|
|
|
(version "7.11.3214")
|
2019-03-06 08:45:27 +01:00
|
|
|
(source
|
|
|
|
(origin
|
2018-01-31 14:20:02 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2019-03-06 08:45:27 +01:00
|
|
|
(url "https://github.com/KhronosGroup/glslang")
|
|
|
|
(commit version)))
|
2017-12-08 14:56:36 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-05-17 12:21:28 +02:00
|
|
|
"0dqjga0lcza006fhac26zp2plbq4gx8a6nsmrwkqlzji6lw1jins"))
|
2018-01-31 14:20:02 +01:00
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
2019-03-06 08:45:27 +01:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ;; No tests
|
|
|
|
;; glslang tries to set CMAKE_INSTALL_PREFIX manually. Remove the
|
|
|
|
;; offending line.
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(add-after 'patch-source-shebangs 'fix-cmakelists
|
|
|
|
(lambda _
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
(("set.*CMAKE_INSTALL_PREFIX.*") ""))
|
|
|
|
#t)))))
|
|
|
|
(native-inputs `(("bison" ,bison)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "https://github.com/KhronosGroup/glslang")
|
|
|
|
(synopsis "OpenGL and OpenGL ES shader front end and validator")
|
|
|
|
(description
|
|
|
|
"Glslang is the official reference compiler front end for the
|
2017-12-14 23:03:02 +01:00
|
|
|
OpenGL@tie{}ES and OpenGL shading languages. It implements a strict
|
|
|
|
interpretation of the specifications for these languages.")
|
2019-03-06 08:45:27 +01:00
|
|
|
;; Modified BSD license. See "copyright" section of
|
|
|
|
;; https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/
|
|
|
|
(license (list license:bsd-3
|
|
|
|
;; include/SPIRV/{bitutils,hex_float}.h are Apache 2.0.
|
|
|
|
license:asl2.0))))
|
2017-12-08 16:06:05 +01:00
|
|
|
|
2018-07-03 09:33:54 +02:00
|
|
|
(define-public vulkan-headers
|
|
|
|
(package
|
|
|
|
(name "vulkan-headers")
|
2019-07-25 10:45:04 +02:00
|
|
|
(version "1.1.114")
|
2018-07-03 09:33:54 +02:00
|
|
|
(source
|
|
|
|
(origin
|
2019-01-10 11:42:13 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/KhronosGroup/Vulkan-Headers")
|
|
|
|
(commit (string-append "v" version))))
|
2019-02-21 08:38:10 +01:00
|
|
|
(file-name (git-file-name name version))
|
2018-07-03 09:33:54 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-07-25 10:45:04 +02:00
|
|
|
"0fdvh26nxibylh32lj8b62d9nf9j25xa0il9zg362wmr2zgm8gka"))))
|
2018-07-03 09:33:54 +02:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2019-01-10 11:42:13 +01:00
|
|
|
`(#:tests? #f)) ; No tests.
|
2018-07-03 09:33:54 +02:00
|
|
|
(home-page
|
|
|
|
"https://github.com/KhronosGroup/Vulkan-Headers")
|
|
|
|
(synopsis "Vulkan Header files and API registry")
|
|
|
|
(description
|
|
|
|
"Vulkan-Headers contains header files and API registry for Vulkan.")
|
|
|
|
(license (list license:asl2.0)))) ;LICENSE.txt
|
|
|
|
|
2018-06-06 09:59:15 +02:00
|
|
|
(define-public vulkan-loader
|
2017-12-08 16:06:05 +01:00
|
|
|
(package
|
2018-06-06 09:59:15 +02:00
|
|
|
(name "vulkan-loader")
|
2019-04-09 10:49:13 +02:00
|
|
|
(version (package-version vulkan-headers))
|
2017-12-08 16:06:05 +01:00
|
|
|
(source
|
|
|
|
(origin
|
2019-01-10 11:42:13 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/KhronosGroup/Vulkan-Loader")
|
|
|
|
(commit (string-append "v" version))))
|
2019-02-21 08:38:10 +01:00
|
|
|
(file-name (git-file-name name version))
|
2017-12-08 16:06:05 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-07-25 10:45:04 +02:00
|
|
|
"1rkm6dzdzxva62shscipz3kpp66x4kgmwvp1ski2fvf4jzzcbv7h"))))
|
2017-12-08 16:06:05 +01:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ;FIXME: 23/39 tests fail. Try "tests/run_all_tests.sh".
|
2018-02-23 12:25:10 +01:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'remove-spirv-tools-commit-id
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Remove lines trying to build in a git commit id.
|
|
|
|
(substitute* "CMakeLists.txt" ((".*spirv_tools_commit_id.h.*") ""))
|
2019-06-21 10:18:19 +02:00
|
|
|
#t))
|
|
|
|
;; Make sure that the files needed for Mesa's Vulkan overlay are availabe.
|
|
|
|
(add-after 'unpack 'copy-headers1
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(install-file "tests/layers/vk_layer_data.h"
|
|
|
|
(string-append (assoc-ref %outputs "out")
|
|
|
|
"/include/vulkan"))
|
|
|
|
(install-file "tests/layers/vk_layer_extension_utils.h"
|
|
|
|
(string-append (assoc-ref %outputs "out")
|
|
|
|
"/include/vulkan"))
|
|
|
|
(install-file "loader/vk_loader_platform.h"
|
|
|
|
(string-append (assoc-ref %outputs "out")
|
|
|
|
"/include/vulkan"))
|
|
|
|
#t))
|
|
|
|
(add-after 'build 'copy-headers2
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(install-file "vk_layer_dispatch_table.h"
|
|
|
|
(string-append (assoc-ref %outputs "out")
|
|
|
|
"/include/vulkan"))
|
|
|
|
(install-file "vk_dispatch_table_helper.h"
|
|
|
|
(string-append (assoc-ref %outputs "out")
|
|
|
|
"/include/vulkan"))
|
2018-02-23 12:25:10 +01:00
|
|
|
#t)))
|
|
|
|
#:configure-flags (list
|
2018-04-25 11:15:56 +02:00
|
|
|
"-DBUILD_TESTS=OFF" ; FIXME: Needs 'googletest' submodule.
|
2018-02-23 12:25:10 +01:00
|
|
|
(string-append "-DCMAKE_INSTALL_LIBDIR="
|
2019-01-10 11:42:13 +01:00
|
|
|
(assoc-ref %outputs "out") "/lib"))))
|
2019-03-21 10:53:24 +01:00
|
|
|
(native-inputs `(("libxrandr" ,libxrandr)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python)
|
|
|
|
("vulkan-headers" ,vulkan-headers)
|
|
|
|
("wayland" ,wayland)))
|
2017-12-08 16:06:05 +01:00
|
|
|
(home-page
|
2018-07-03 09:35:37 +02:00
|
|
|
"https://github.com/KhronosGroup/Vulkan-Loader")
|
2017-12-08 16:06:05 +01:00
|
|
|
(synopsis "Khronos official ICD loader and validation layers for Vulkan")
|
|
|
|
(description
|
|
|
|
"Vulkan allows multiple @dfn{Installable Client Drivers} (ICDs) each
|
|
|
|
supporting one or more devices to be used collectively. The loader is
|
|
|
|
responsible for discovering available Vulkan ICDs on the system and inserting
|
|
|
|
Vulkan layer libraries, including validation layers between the application
|
|
|
|
and the ICD.")
|
|
|
|
;; This software is mainly Apache 2.0 licensed, but contains some components
|
|
|
|
;; covered by other licenses. See COPYRIGHT.txt for details.
|
|
|
|
(license (list license:asl2.0 ;LICENSE.txt
|
|
|
|
(license:x11-style "file://COPYRIGHT.txt")
|
|
|
|
license:bsd-3))))
|
2018-01-31 15:26:18 +01:00
|
|
|
|
2018-06-07 13:32:28 +02:00
|
|
|
(define-public vulkan-icd-loader
|
|
|
|
(deprecated-package "vulkan-icd-loader" vulkan-loader))
|
|
|
|
|
2018-07-07 22:38:37 +02:00
|
|
|
(define-public vulkan-tools
|
|
|
|
(package
|
|
|
|
(name "vulkan-tools")
|
2019-04-10 08:25:01 +02:00
|
|
|
(version (package-version vulkan-headers))
|
2018-07-07 22:38:37 +02:00
|
|
|
(source
|
|
|
|
(origin
|
2019-01-10 11:42:13 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/KhronosGroup/Vulkan-Tools")
|
2019-02-21 08:38:10 +01:00
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2018-07-07 22:38:37 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-07-25 10:45:04 +02:00
|
|
|
"1lz06mpni8ghf1xcxi4g6ck306lfaqwfi6f1w64kp9hczmvapfhf"))))
|
2018-07-07 22:38:37 +02:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("glslang" ,glslang)
|
|
|
|
("libxrandr" ,libxrandr)
|
|
|
|
("vulkan-loader" ,vulkan-loader)
|
|
|
|
("wayland" ,wayland)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
2019-03-21 11:09:52 +01:00
|
|
|
("python" ,python)
|
|
|
|
("vulkan-headers" ,vulkan-headers)))
|
2018-07-07 22:38:37 +02:00
|
|
|
(arguments
|
2019-03-06 09:43:32 +01:00
|
|
|
`(#:tests? #f ; No tests.
|
2019-03-07 10:40:26 +01:00
|
|
|
#:configure-flags (list (string-append "-DGLSLANG_INSTALL_DIR="
|
2019-03-06 09:43:32 +01:00
|
|
|
(assoc-ref %build-inputs "glslang")))))
|
2018-07-07 22:38:37 +02:00
|
|
|
(home-page
|
|
|
|
"https://github.com/KhronosGroup/Vulkan-Tools")
|
|
|
|
(synopsis "Tools and utilities for Vulkan")
|
|
|
|
(description
|
|
|
|
"Vulkan-Tools provides tools and utilities that can assist development by
|
|
|
|
enabling developers to verify their applications correct use of the Vulkan
|
|
|
|
API.")
|
|
|
|
(license (list license:asl2.0)))) ;LICENSE.txt
|
|
|
|
|
2018-01-31 15:26:18 +01:00
|
|
|
(define-public shaderc
|
2019-03-06 09:06:24 +01:00
|
|
|
(package
|
|
|
|
(name "shaderc")
|
2019-06-06 08:32:11 +02:00
|
|
|
(version "2019.0")
|
2019-03-06 09:06:24 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/google/shaderc")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-06-06 08:32:11 +02:00
|
|
|
"1l5mmyxhzsbp0a6y2d86i8jmf46c6bjgjkdgkr5l8hmhflmm7gi2"))))
|
2019-03-06 09:06:24 +01:00
|
|
|
(build-system meson-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; FIXME: Tests fail.
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
;; Remove various lines and touch build-version.inc or
|
|
|
|
;; configuring won't work.
|
|
|
|
(invoke "touch" "glslc/src/build-version.inc")
|
|
|
|
(substitute* "CMakeLists.txt" (("..PYTHON_EXE..*") ""))
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
((".*update_build_version.py..*") ""))
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
((".*add_custom_target.build-version.*") ""))
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
((".*spirv-tools_SOURCE_DIR.*glslang_SOURCE_DIR.*")
|
|
|
|
""))
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
((".*Update build-version.inc.*") ""))
|
|
|
|
(substitute* "CMakeLists.txt" ((".*--check.*") ""))
|
|
|
|
(substitute* "glslc/src/main.cc" ((".*build-version.inc.*")
|
|
|
|
"\"1\""))
|
|
|
|
(invoke "cmake" "-GNinja" "-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DSHADERC_SKIP_TESTS=ON"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
(string-append "-DCMAKE_INSTALL_PREFIX="
|
|
|
|
out)))))
|
|
|
|
(add-after 'unpack 'unpack-sources
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((spirv-tools-source (assoc-ref inputs "spirv-tools-source"))
|
|
|
|
(spirv-headers-source (assoc-ref inputs "spirv-headers-source"))
|
|
|
|
(glslang-source (assoc-ref inputs "glslang-source")))
|
|
|
|
(copy-recursively spirv-tools-source "third_party/spirv-tools")
|
|
|
|
(copy-recursively spirv-headers-source
|
|
|
|
(string-append "third_party/spirv-tools"
|
|
|
|
"/external/spirv-headers"))
|
|
|
|
(copy-recursively glslang-source "third_party/glslang")
|
|
|
|
#t))))))
|
|
|
|
(inputs
|
|
|
|
`(("googletest" ,googletest)
|
|
|
|
("python" ,python)))
|
|
|
|
(native-inputs
|
|
|
|
`(("cmake" ,cmake)
|
|
|
|
("glslang-source" ,(package-source glslang))
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("spirv-headers-source" ,(package-source spirv-headers))
|
|
|
|
("spirv-tools-source" ,(package-source spirv-tools))))
|
|
|
|
(home-page "https://github.com/google/shaderc")
|
|
|
|
(synopsis "Tools for shader compilation")
|
|
|
|
(description "Shaderc is a collection of tools, libraries, and tests for
|
2018-01-31 15:26:18 +01:00
|
|
|
shader compilation.")
|
2019-03-06 09:06:24 +01:00
|
|
|
(license license:asl2.0)))
|
2018-06-11 11:14:28 +02:00
|
|
|
|
|
|
|
(define-public vkd3d
|
2018-10-10 09:32:48 +02:00
|
|
|
(let ((commit "ecda316ef54d70bf1b3e860755241bb75873e53f")) ; Release 1.1.
|
2018-06-11 11:14:28 +02:00
|
|
|
(package
|
|
|
|
(name "vkd3d")
|
2018-10-10 09:32:48 +02:00
|
|
|
(version "1.1")
|
2018-06-11 11:14:28 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://source.winehq.org/git/vkd3d.git")
|
|
|
|
(commit commit)))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-10-10 09:32:48 +02:00
|
|
|
"05a28kspy8gzng181w28zjqdb3pj2ss83b0lwnppxbcdzsz7rvrf"))
|
2018-06-11 11:14:28 +02:00
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags '("--with-spirv-tools")))
|
|
|
|
(native-inputs
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
("automake" ,automake)
|
|
|
|
("gettext" ,gnu-gettext)
|
|
|
|
("libtool" ,libtool)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("libx11" ,libx11)
|
|
|
|
("libxcb" ,libxcb)
|
|
|
|
("spirv-headers" ,spirv-headers)
|
|
|
|
("spirv-tools" ,spirv-tools)
|
2018-07-03 10:05:34 +02:00
|
|
|
("vulkan-headers" ,vulkan-headers)
|
2018-06-11 11:14:28 +02:00
|
|
|
("vulkan-loader" ,vulkan-loader)
|
2019-01-24 09:13:55 +01:00
|
|
|
("wine-minimal" ,wine-minimal) ; Needed for 'widl'.
|
2018-06-11 11:14:28 +02:00
|
|
|
("xcb-util" ,xcb-util)
|
|
|
|
("xcb-util-keysyms" ,xcb-util-keysyms)
|
|
|
|
("xcb-util-wm" ,xcb-util-wm)))
|
|
|
|
(home-page "https://source.winehq.org/git/vkd3d.git/")
|
|
|
|
(synopsis "Direct3D 12 to Vulkan translation library")
|
|
|
|
(description "vkd3d is a library for translating Direct3D 12 to Vulkan.")
|
|
|
|
(license license:lgpl2.1))))
|