gnu: wine: Improve formatting of some package definitions.

* gnu/packages/wine.scm (wine, wine64)[arguments]: Fix formatting issues.
This commit is contained in:
Christopher Baines 2020-11-28 14:34:18 +00:00
parent 80c65f30d6
commit e2b4450d18
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -171,10 +171,12 @@ (define-public wine
(let* ((out (assoc-ref outputs "out"))
(icd (string-append out "/share/vulkan/icd.d")))
(mkdir-p icd)
(copy-file (string-append (assoc-ref inputs "mesa")
(copy-file (string-append
(assoc-ref inputs "mesa")
"/share/vulkan/icd.d/radeon_icd.i686.json")
(string-append icd "/radeon_icd.i686.json"))
(copy-file (string-append (assoc-ref inputs "mesa")
(copy-file (string-append
(assoc-ref inputs "mesa")
"/share/vulkan/icd.d/intel_icd.i686.json")
(string-append icd "/intel_icd.i686.json"))
(wrap-program (string-append out "/bin/wine-preloader")
@ -184,8 +186,7 @@ (define-public wine
icd "/intel_icd.i686.json"))))
#t)))))
(_
`())
)
`()))
(add-after 'configure 'patch-dlopen-paths
;; Hardcode dlopened sonames to absolute paths.
(lambda _
@ -233,7 +234,8 @@ (define-public wine64
(let* ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/bin/wine-preloader")
`("VK_ICD_FILENAMES" ":" =
(,(string-append (assoc-ref inputs "mesa")
(,(string-append
(assoc-ref inputs "mesa")
"/share/vulkan/icd.d/radeon_icd.x86_64.json" ":"
(assoc-ref inputs "mesa")
"/share/vulkan/icd.d/intel_icd.x86_64.json" ":"
@ -243,7 +245,8 @@ (define-public wine64
"/share/vulkan/icd.d/intel_icd.i686.json"))))
(wrap-program (string-append out "/bin/wine64-preloader")
`("VK_ICD_FILENAMES" ":" =
(,(string-append (assoc-ref inputs "mesa")
(,(string-append
(assoc-ref inputs "mesa")
"/share/vulkan/icd.d/radeon_icd.x86_64.json"
":" (assoc-ref inputs "mesa")
"/share/vulkan/icd.d/intel_icd.x86_64.json"
@ -253,8 +256,7 @@ (define-public wine64
"/share/vulkan/icd.d/intel_icd.i686.json"))))
#t)))))
(_
`())
)
`()))
(add-after 'install 'copy-wine32-binaries
(lambda* (#:key outputs #:allow-other-keys)
(let* ((wine32 (assoc-ref %build-inputs "wine"))