gnu: slock: Fix cross-compiling.

* gnu/packages/suckless.scm (slock)[arguments]: Use Gexp.

Change-Id: I491c43a6ce2c3fc3aed43ecab9d4a2ab251038bb
Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Zheng Junjie 2024-03-23 00:45:06 +08:00 committed by Christopher Baines
parent 8cc450e59a
commit 9fa8c53625
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -15,6 +15,7 @@
;;; Copyright © 2022 jgart <jgart@dismail.de> ;;; Copyright © 2022 jgart <jgart@dismail.de>
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org> ;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
;;; Copyright © 2024 Clément Lassieur <clement@lassieur.org> ;;; Copyright © 2024 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -349,11 +350,11 @@ (define-public slock
"0k8fvf9g27yyaqpyhk6apbkq6r4vjwxhff1qb9ignxx2yvxy7qdf")))) "0k8fvf9g27yyaqpyhk6apbkq6r4vjwxhff1qb9ignxx2yvxy7qdf"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; no tests (list #:tests? #f ; no tests
#:make-flags #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
(list (string-append "CC=" ,(cc-for-target)) (string-append "PREFIX=" #$output))
(string-append "PREFIX=" %output)) #:phases #~(modify-phases %standard-phases
#:phases (modify-phases %standard-phases (delete 'configure)))) (delete 'configure))))
(inputs (inputs
(list libx11 libxext libxinerama libxrandr)) (list libx11 libxext libxinerama libxrandr))
(home-page "https://tools.suckless.org/slock/") (home-page "https://tools.suckless.org/slock/")