gnu: kinfocenter: Update to 6.2.5.

* gnu/packages/kde-plasma.scm (kinfocenter): Update to 6.2.5.
[inputs]: Add bash-minimal and fwupd.
[arguments]<#:phases>: Adjust set-path phase.

Change-Id: I37b1718d3dbeb97d0ff5f69f7695ed26963d7a4d

* gnu/packages/kde-plasma.scm (kinfocenter): Update to 6.2.5.

Change-Id: I18ae6638f49cab8a4ad903e7074d5b73ad494ebd
This commit is contained in:
Zheng Junjie 2025-01-10 11:51:53 +08:00
parent 7473fba946
commit ea80d51580
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -716,14 +716,14 @@ (define-public kglobalacceld
(define-public kinfocenter
(package
(name "kinfocenter")
(version "6.1.4")
(version "6.2.5")
(source (origin
(method url-fetch)
(uri (string-append "mirror://kde/stable/plasma/" version
"/" name "-" version ".tar.xz"))
(sha256
(base32
"1n904nn0jrrih9qk8cz2d2sp9pghr6qn0ra5jbbg2rpz4k1gv78p"))))
"1yczcgq4rnfmg3g8sb83nym8jmglp0hwhyfwz24n29947bdpxn4y"))))
(build-system cmake-build-system)
(arguments
(list
@ -742,7 +742,8 @@ (define-public kinfocenter
(search-input-file
inputs
(string-append "/bin/" cmd))
"\""))))))
"\"")))))
(dmidecode (search-input-file inputs "/sbin/dmidecode")))
(substitute* "CMakeLists.txt"
(("\\$\\{KDE_INSTALL_FULL_BINDIR\\}/systemsettings")
(search-input-file inputs
@ -753,7 +754,20 @@ (define-public kinfocenter
(substitute* "kcms/kwinsupportinfo/main.cpp"
(("QLibraryInfo::path\\(QLibraryInfo::BinariesPath\\) \\+ QStringLiteral\\(\"/qdbus\"\\)")
(string-append "QStringLiteral(\"" (search-input-file inputs "/bin/qdbus") "\")")))
(substitute* "kcms/memory/kcm_memory.json"
(("pkexec dmidecode")
(string-append
"pkexec " dmidecode)))
(substitute* "kcms/memory/main.cpp"
(("dmidecode") dmidecode))
(substitute* '("kcms/firmware_security/main.cpp"
"kcms/firmware_security/fwupdmgr.sh"
"kcms/firmware_security/kcm_firmware_security.json")
(("aha") (search-input-file inputs "/bin/aha"))
(("\"fwupdmgr\"") (string-append "\"" (search-input-file inputs "/bin/fwupdmgr") "\""))
(("fwupdmgr security") (string-append (search-input-file inputs "/bin/fwupdmgr") " security"))
(("sed") (search-input-file inputs "/bin/sed"))
(("/bin/sh") (search-input-file inputs "/bin/sh")))
(replace '("kcms/cpu/kcm_cpu.json"
"kcms/cpu/main.cpp") "lscpu")
(replace '("kcms/opencl/kcm_opencl.json"
@ -771,8 +785,9 @@ (define-public kinfocenter
(native-inputs (list aha extra-cmake-modules kdoctools pkg-config qttools))
;; * vulkaninfo
;; Wayland KCM
(inputs (list dmidecode
;; fwupdmgr ;; Packaged on master branch already
(inputs (list bash-minimal
dmidecode
fwupd
kauth
kconfig
kconfigwidgets