From: "\( via Guix-patches" via <guix-patches@gnu.org>
To: 56959@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>
Subject: [bug#56959] [PATCH] gnu: packages: Add glad2.
Date: Wed, 3 Aug 2022 20:46:25 +0100 [thread overview]
Message-ID: <20220803194625.6770-1-paren@disroot.org> (raw)
* gnu/packages/gl.scm (glad2): New variable.
---
gnu/packages/gl.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index c740c087dd..3539b66a2a 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -17,6 +17,7 @@
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
;;; Copyright © 2021 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2022 ( <paren@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -66,6 +67,7 @@ (define-module (gnu packages gl)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
#:use-module (guix build-system waf)
+ #:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
@@ -215,6 +217,50 @@ (define-public glad
generate a GL/GLES/EGL/GLX/WGL loader tailored for specific requirements.")
(license license:expat)))
+(define-public glad2
+ (let ((commit "b1051403cf81b984f9fc11cc5916adb5afd34766")
+ (revision "2"))
+ (package
+ (name "glad2")
+ (version (git-version "0.1.36" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Dav1dde/glad")
+ (commit commit)))
+ (sha256
+ (base32
+ "03q3gxg2z9lpx7hqac2fd3ld94avhkg4mdxjfjgrgh97kyx9knpm"))))
+ (build-system python-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-cmake-plugin
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (cmake-dir (string-append
+ out "/share/cmake/glad")))
+ (mkdir-p cmake-dir)
+ (copy-file "cmake/CMakeLists.txt"
+ (string-append cmake-dir
+ "/glad.cmake"))))))))
+ (inputs (list python-jinja2))
+ (home-page "https://glad.sh")
+ (synopsis "Multi-language OpenGL/Vulkan loader generator")
+ (description
+ "GLAD 2 is an improved iteration of the GLAD graphics API loader
+generator. It generates bindings to Vulkan and GL-related APIs from the
+official Khronos specifications. Among the improvements are:
+@enumerate
+@item Better EGL, GLX, and WGL support
+@item Support for generating Vulkan bindings
+@item A Rust frontend
+@item More generator options (such as an option to make GLAD header-only)
+@item Improvements to CMake support
+@item Better API
+@end enumerate")
+ (license license:expat))))
+
(define-public s2tc
(package
(name "s2tc")
--
2.37.1
next reply other threads:[~2022-08-03 19:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-03 19:46 ( via Guix-patches via [this message]
2022-08-11 14:19 ` [bug#56959] [PATCH] gnu: packages: Add glad2 Jean Pierre De Jesus DIAZ via Guix-patches via
2022-08-12 6:50 ` ( via Guix-patches via
2022-08-12 6:59 ` [bug#56959] [PATCH v2] " ( via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220803194625.6770-1-paren@disroot.org \
--to=guix-patches@gnu.org \
--cc=56959@debbugs.gnu.org \
--cc=paren@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).