nongnu: nvidia-settings: Unbundle jansson.

* nongnu/packages/nvidia.scm (nvidia-settings) [inputs]: Add jansson.
[source]<snippet>: Delete bundled jansson.
[arguments]<#:make-flags>: Don't use bundled jansson.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
Hilton Chain 2023-12-15 22:01:57 +08:00 committed by John Kehayias
parent f6c8eb082c
commit 54d01560e9
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -539,6 +539,8 @@ userspace tools from the corresponding driver release.")
(url "https://github.com/NVIDIA/nvidia-settings")
(commit version)))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet '(delete-file-recursively "src/jansson"))
(sha256
(base32
"1hplc42115c06cc555cjmw3c9371qn7ibwjpqjybcf6ixfd6lryq"))))
@ -546,7 +548,8 @@ userspace tools from the corresponding driver release.")
(arguments
(list #:tests? #f ;no test suite
#:make-flags
#~(list (string-append "PREFIX=" #$output)
#~(list "NV_USE_BUNDLED_LIBJANSSON=0"
(string-append "PREFIX=" #$output)
(string-append "CC=" #$(cc-for-target)))
#:phases
#~(modify-phases %standard-phases
@ -564,6 +567,7 @@ userspace tools from the corresponding driver release.")
glu
gtk+
gtk+-2
jansson
libvdpau
libx11
libxext