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
1 changed files with 6 additions and 5 deletions

View File

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