diff options
| author | Andreas Enge <andreas@enge.fr> | 2026-03-15 14:56:18 +0100 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2026-03-30 10:36:23 +0300 |
| commit | d9d725c9914bdcd0d4d3f1fc45dd204c39ae013d (patch) | |
| tree | b7cb0c7fd4d13f394e8a21ab8725d074cb694674 | |
| parent | 7ec8a42a2fec78bfb6e5f27369b189ee3bbb741d (diff) | |
gnu: glad: Disinherit from glad-0.1 and enable tests.
* gnu/packages/gl.scm (glad)[inherit]: Remove field.
[home-page, synopsis, description, license]: Copy fields from glad-0.1.
[arguments]<#:tests>: Do not copy from glad-0.1.
<#:phases>: Rewrite from scratch.
Change-Id: I1404b087d1b39bbfab4e695682a301c2ea8ae7f8
Signed-off-by: John Kehayias <john@guixotic.coop>
| -rw-r--r-- | gnu/packages/gl.scm | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index f90c5a8865b..0664510ec85 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm | |||
| @@ -244,7 +244,6 @@ generate a GL/GLES/EGL/GLX/WGL loader tailored for specific requirements.") | |||
| 244 | 244 | ||
| 245 | (define-public glad | 245 | (define-public glad |
| 246 | (package | 246 | (package |
| 247 | (inherit glad-0.1) | ||
| 248 | (name "glad") | 247 | (name "glad") |
| 249 | (version "2.0.8") | 248 | (version "2.0.8") |
| 250 | (source (origin | 249 | (source (origin |
| @@ -258,21 +257,26 @@ generate a GL/GLES/EGL/GLX/WGL loader tailored for specific requirements.") | |||
| 258 | "0c9cygiq35aiq6bpdvbwqs0wxc2dvxsh4jnx50466savscxalsk9")))) | 257 | "0c9cygiq35aiq6bpdvbwqs0wxc2dvxsh4jnx50466savscxalsk9")))) |
| 259 | (build-system pyproject-build-system) | 258 | (build-system pyproject-build-system) |
| 260 | (arguments | 259 | (arguments |
| 261 | (substitute-keyword-arguments (package-arguments glad-0.1) | 260 | (list |
| 262 | ((#:phases phases '%standard-phases) | 261 | #:phases |
| 263 | #~(modify-phases #$phases | 262 | #~(modify-phases %standard-phases |
| 264 | (replace 'install-cmakelists.txt | 263 | (add-after 'install 'install-cmakelists.txt |
| 265 | (lambda _ | 264 | (lambda _ |
| 266 | (let ((share (string-append #$output "/share/" | 265 | (let ((share (string-append #$output "/share/" |
| 267 | #$(package-name this-package)))) | 266 | #$(package-name this-package)))) |
| 268 | (install-file "cmake/CMakeLists.txt" share) | 267 | (install-file "cmake/CMakeLists.txt" share) |
| 269 | (install-file "cmake/GladConfig.cmake" share)))) | 268 | (install-file "cmake/GladConfig.cmake" share)))) |
| 270 | (replace 'check | 269 | (replace 'check |
| 271 | (lambda* (#:key tests? #:allow-other-keys) | 270 | (lambda* (#:key tests? #:allow-other-keys) |
| 272 | (when tests? | 271 | (when tests? |
| 273 | (invoke "xvfb-run" "utility/test.sh")))))))) | 272 | (invoke "xvfb-run" "utility/test.sh"))))))) |
| 274 | (native-inputs (list python-setuptools python-wheel xvfb-run-for-tests)) | 273 | (native-inputs (list python-setuptools python-wheel xvfb-run-for-tests)) |
| 275 | (propagated-inputs (list python-jinja2)))) | 274 | (propagated-inputs (list python-jinja2)) |
| 275 | (home-page "https://github.com/Dav1dde/glad") | ||
| 276 | (synopsis "Multi-language GL/GLES/EGL/GLX/WGL loader generator") | ||
| 277 | (description "Glad uses the official Khronos XML specifications to | ||
| 278 | generate a GL/GLES/EGL/GLX/WGL loader tailored for specific requirements.") | ||
| 279 | (license license:expat))) | ||
| 276 | 280 | ||
| 277 | (define-public s2tc | 281 | (define-public s2tc |
| 278 | (package | 282 | (package |
