diff options
| author | John Kehayias <john@guixotic.coop> | 2026-07-20 01:12:13 -0400 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-07-27 19:47:29 +0200 |
| commit | e0bf6473ba3ecbcb1e8f25b511e9ef7e2a8c7547 (patch) | |
| tree | af709ed3cacb6df07378b773ee9cd167253a0f9d /gnu/packages/graphics.scm | |
| parent | f1a03fa3029e4eeb07045d05154bc054497f6ed1 (diff) | |
gnu: mangohud: Update to 0.8.4.
* gnu/packages/graphics.scm (mangohud): Update to 0.8.4.
[arguments]<#:phases>: Rename unbundle-imgui phase to unbundle-imgui-implot,
adjust for upstream changes, and also unbundle implot. Rename
unbundle-vulkan-headers phase to unbundle-vulkan, adjust for upstream changes,
and also unbundle vulkan-utility-libraries.
[inputs]: Change imgui-1.86 to imgui-1.91. Add implot, libxkbcommon,
vulkan-loader, origin for vulkan-utility-libraries, and wayland. Update
origin for vulkan-headers to 1.4.346.
Fixes: guix/guix#5416
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/graphics.scm')
| -rw-r--r-- | gnu/packages/graphics.scm | 59 |
1 files changed, 38 insertions, 21 deletions
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index c6a412b226a..f85167ba540 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm | |||
| @@ -1462,7 +1462,7 @@ distills complex, animated scenes into a set of baked geometric results.") | |||
| 1462 | (define-public mangohud | 1462 | (define-public mangohud |
| 1463 | (package | 1463 | (package |
| 1464 | (name "mangohud") | 1464 | (name "mangohud") |
| 1465 | (version "0.7.0") | 1465 | (version "0.8.4") |
| 1466 | (source | 1466 | (source |
| 1467 | (origin | 1467 | (origin |
| 1468 | (method git-fetch) | 1468 | (method git-fetch) |
| @@ -1471,7 +1471,7 @@ distills complex, animated scenes into a set of baked geometric results.") | |||
| 1471 | (commit (string-append "v" version)))) | 1471 | (commit (string-append "v" version)))) |
| 1472 | (file-name (git-file-name name version)) | 1472 | (file-name (git-file-name name version)) |
| 1473 | (sha256 | 1473 | (sha256 |
| 1474 | (base32 "1m4a2dqzqdhk9w1gvzppid7k0fxvplh5hmivvj9sda529s1g24rc")))) | 1474 | (base32 "13zwqam7mqhc7f4gngxcrrfa7ds85nwfms1v4vaccznbfbaa28rn")))) |
| 1475 | (build-system meson-build-system) | 1475 | (build-system meson-build-system) |
| 1476 | (arguments | 1476 | (arguments |
| 1477 | (list | 1477 | (list |
| @@ -1482,34 +1482,39 @@ distills complex, animated scenes into a set of baked geometric results.") | |||
| 1482 | "-Dappend_libdir_mangohud=false") | 1482 | "-Dappend_libdir_mangohud=false") |
| 1483 | #:phases | 1483 | #:phases |
| 1484 | #~(modify-phases %standard-phases | 1484 | #~(modify-phases %standard-phases |
| 1485 | ;; MangoHud tries to build the imgui library as a meson submodule, | 1485 | ;; MangoHud tries to build the imgui and implot libraries as a meson |
| 1486 | ;; so we change the dependency to the imgui input instead. | 1486 | ;; submodules, so we change the dependency to the inputs instead. |
| 1487 | (add-after 'unpack 'unbundle-imgui | 1487 | (add-after 'unpack 'unbundle-imgui-implot |
| 1488 | (lambda _ | 1488 | (lambda _ |
| 1489 | (substitute* "meson.build" | 1489 | (substitute* "meson.build" |
| 1490 | (("dearimgui_sp = .*") | 1490 | (("im.*_sp = .*") |
| 1491 | "") | 1491 | "") |
| 1492 | (("dearimgui_sp.get_variable\\('imgui_dep'\\)") | 1492 | (("imgui_sp.get_variable\\('imgui_dep'\\)") |
| 1493 | (string-append | 1493 | (string-append |
| 1494 | "declare_dependency(dependencies: " | 1494 | "declare_dependency(dependencies: " |
| 1495 | "cpp.find_library('imgui'), include_directories: '" | 1495 | "cpp.find_library('imgui'), include_directories: '" |
| 1496 | #$(this-package-input "imgui") "/include/imgui')"))))) | 1496 | #$(this-package-input "imgui") "/include/imgui')")) |
| 1497 | ;; Likewise, MangoHud bundles a Vulkan headers submodule to use a | 1497 | (("implot_sp.get_variable\\('implot_dep'\\)") |
| 1498 | ;; specific version, which we provide as an input and adjust the | 1498 | (string-append |
| 1499 | ;; build accordingly. | 1499 | "declare_dependency(dependencies: " |
| 1500 | (add-after 'unbundle-imgui 'unbundle-vulkan-headers | 1500 | "cpp.find_library('implot'), include_directories: '" |
| 1501 | #$(this-package-input "implot") "/include/implot')"))))) | ||
| 1502 | ;; Likewise, MangoHud bundles Vulkan submodules to use specific | ||
| 1503 | ;; versions, which we provide as inputs and adjust the build | ||
| 1504 | ;; accordingly. | ||
| 1505 | (add-after 'unbundle-imgui-implot 'unbundle-vulkan | ||
| 1501 | (lambda* (#:key inputs #:allow-other-keys) | 1506 | (lambda* (#:key inputs #:allow-other-keys) |
| 1502 | (substitute* "meson.build" | 1507 | (substitute* "meson.build" |
| 1503 | (("vkh_sp = .*") | 1508 | (("vulkan_.*_sp = .*") |
| 1504 | "") | 1509 | "") |
| 1505 | (("vkh_sp.get_variable\\('vulkan_api_xml'\\)") | 1510 | (("vulkan_headers_sp.get_variable\\('vulkan_api_xml'\\)") |
| 1506 | (string-append "files('" | 1511 | (string-append "files('" |
| 1507 | (search-input-file inputs "registry/vk.xml") | 1512 | (search-input-file inputs "registry/vk.xml") |
| 1508 | "')")) | 1513 | "')")) |
| 1509 | (("dep_vulkan = .*") | 1514 | (("dep_vulkan.*") |
| 1510 | "")) | 1515 | "")) |
| 1511 | (substitute* "src/meson.build" | 1516 | (substitute* "src/meson.build" |
| 1512 | (("dep_vulkan,") | 1517 | (("dep_vulkan.*") |
| 1513 | "")))) | 1518 | "")))) |
| 1514 | (add-after 'unpack 'patch-paths | 1519 | (add-after 'unpack 'patch-paths |
| 1515 | (lambda* (#:key inputs #:allow-other-keys) | 1520 | (lambda* (#:key inputs #:allow-other-keys) |
| @@ -1532,8 +1537,10 @@ distills complex, animated scenes into a set of baked geometric results.") | |||
| 1532 | (list dbus | 1537 | (list dbus |
| 1533 | glslang | 1538 | glslang |
| 1534 | hwdata | 1539 | hwdata |
| 1535 | imgui-1.86 | 1540 | imgui-1.91 |
| 1541 | implot | ||
| 1536 | libx11 | 1542 | libx11 |
| 1543 | libxkbcommon | ||
| 1537 | mesa | 1544 | mesa |
| 1538 | mesa-utils | 1545 | mesa-utils |
| 1539 | nlohmann-json | 1546 | nlohmann-json |
| @@ -1543,12 +1550,22 @@ distills complex, animated scenes into a set of baked geometric results.") | |||
| 1543 | (method git-fetch) | 1550 | (method git-fetch) |
| 1544 | (uri (git-reference | 1551 | (uri (git-reference |
| 1545 | (url "https://github.com/KhronosGroup/Vulkan-Headers") | 1552 | (url "https://github.com/KhronosGroup/Vulkan-Headers") |
| 1546 | (commit "v1.2.158"))) | 1553 | (commit "v1.4.346"))) |
| 1547 | (file-name (git-file-name "vulkan" "v1.2.158")) | 1554 | (file-name (git-file-name "vulkan" "v1.4.346")) |
| 1555 | (sha256 | ||
| 1556 | (base32 | ||
| 1557 | "0nv0701qbwxi4p2nvrf1m80nh6pjfhbqv8qhjbb531kr47j5cc15"))) | ||
| 1558 | vulkan-loader | ||
| 1559 | (origin | ||
| 1560 | (method git-fetch) | ||
| 1561 | (uri (git-reference | ||
| 1562 | (url "https://github.com/KhronosGroup/Vulkan-Utility-Libraries") | ||
| 1563 | (commit "v1.4.346"))) | ||
| 1564 | (file-name (git-file-name "vulkan-utility-libraries" "v1.4.346")) | ||
| 1548 | (sha256 | 1565 | (sha256 |
| 1549 | (base32 | 1566 | (base32 |
| 1550 | "0jvaqj87792yccpr290djb18pqaisspq9dw6bqim6mrhfgda9v76"))) | 1567 | "0fwws98lkrc8df0ikrqh89df9az3pa13idxrvlzn4bk1szl5wrhm"))) |
| 1551 | vulkan-loader)) | 1568 | wayland)) |
| 1552 | (native-inputs (list git-minimal/pinned pkg-config python)) | 1569 | (native-inputs (list git-minimal/pinned pkg-config python)) |
| 1553 | (home-page "https://github.com/flightlessmango/MangoHud/") | 1570 | (home-page "https://github.com/flightlessmango/MangoHud/") |
| 1554 | (synopsis "Vulkan and OpenGL overlay for monitoring performance and hardware") | 1571 | (synopsis "Vulkan and OpenGL overlay for monitoring performance and hardware") |
