gnu: mbpfan: Update to 2.4.0.

* gnu/packages/linux.scm (mbpfan): Update to 2.4.0.
[arguments]: Use GEXPs.

Change-Id: I8a83a5f64b0ced1e96069923066083a0377222bd
This commit is contained in:
Artyom V. Poptsov 2025-09-17 22:13:43 +03:00
parent 009ca1c72f
commit 22f944e478
No known key found for this signature in database
GPG key ID: 935EBE0736DC857E

View file

@ -10252,7 +10252,7 @@ interface to this kernel feature.")
(define-public mbpfan (define-public mbpfan
(package (package
(name "mbpfan") (name "mbpfan")
(version "2.2.1") (version "2.4.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -10261,20 +10261,19 @@ interface to this kernel feature.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0gc9ypxi55vxs77nx8ihhh9zk7fr9v0m0zfm76q7x0bi6jz11mbr")))) (base32 "146sshsjafi26n741jvi9mdbazwf74jlacxfwkky4fhbq98idlhp"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; tests ask to be run as root (list #:tests? #f ; tests ask to be run as root
#:make-flags (let ((out (assoc-ref %outputs "out"))) #:make-flags
(list (string-append "DESTDIR=" out) #~(list (string-append "DESTDIR=" #$output)
,(string-append "CC=" (cc-for-target)))) (string-append "CC=" #$(cc-for-target)))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-paths (add-after 'unpack 'patch-paths
(lambda _ (lambda _
(substitute* "Makefile" (substitute* "Makefile"
(("/usr") "")) (("/usr") ""))))
#t))
(delete 'configure)))) ; there's no configure phase (delete 'configure)))) ; there's no configure phase
(home-page "https://github.com/dgraziotin/mbpfan") (home-page "https://github.com/dgraziotin/mbpfan")
(synopsis "Control fan speed on Macbooks") (synopsis "Control fan speed on Macbooks")