nongnu: nvidia-settings: Use gexp.
* nognu/packages/nvidia.scm (nvidia-settings): Use gexp. Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
parent
056c01b10c
commit
96292fee38
|
@ -2,7 +2,7 @@
|
||||||
;;; Copyright © 2020 Hebi Li <hebi@lihebi.com>
|
;;; Copyright © 2020 Hebi Li <hebi@lihebi.com>
|
||||||
;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
|
;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
|
||||||
;;; Copyright © 2020, 2021 Jean-Baptiste Volatier <jbv@pm.me>
|
;;; Copyright © 2020, 2021 Jean-Baptiste Volatier <jbv@pm.me>
|
||||||
;;; Copyright © 2020, 2021 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
;;; Copyright © 2020-2022 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
||||||
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
|
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
|
||||||
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
||||||
;;;
|
;;;
|
||||||
|
@ -470,21 +470,19 @@ source userspace tools from the corresponding driver release.")
|
||||||
"1lnj5hwmfkzs664fxlhljqy323394s1i7qzlpsjyrpm07sa93bky"))))
|
"1lnj5hwmfkzs664fxlhljqy323394s1i7qzlpsjyrpm07sa93bky"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ;no test suite
|
(list #:tests? #f ;no test suite
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list (string-append "PREFIX=" %output)
|
#~(list (string-append "PREFIX=" #$output)
|
||||||
(string-append "CC="
|
(string-append "CC=" #$(cc-for-target)))
|
||||||
,(cc-for-target)))
|
#:phases
|
||||||
#:phases
|
#~(modify-phases %standard-phases
|
||||||
(modify-phases %standard-phases
|
(delete 'configure)
|
||||||
(delete 'configure)
|
(add-after 'install 'wrap-program
|
||||||
;; nvidia-settings loads the libraries,libnvidia-gkt{2,3}.so at runtime
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(add-after 'install 'wrap-program
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(wrap-program (string-append out "/bin/nvidia-settings")
|
||||||
(let ((out (assoc-ref outputs "out")))
|
`("LD_LIBRARY_PATH" ":" prefix
|
||||||
(wrap-program (string-append out "/bin/nvidia-settings")
|
(,(string-append out "/lib/"))))))))))
|
||||||
`("LD_LIBRARY_PATH" ":" prefix
|
|
||||||
(,(string-append out "/lib/"))))))))))
|
|
||||||
(native-inputs (list m4
|
(native-inputs (list m4
|
||||||
pkg-config))
|
pkg-config))
|
||||||
(inputs (list bash-minimal
|
(inputs (list bash-minimal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user