Skip to content
Snippets Groups Projects
Unverified Commit 07cda02c authored by Efraim Flashner's avatar Efraim Flashner
Browse files

gnu: wine: Use 'modify-phases' syntax.

* gnu/packages/wine.scm (wine)[arguments]: Use 'modify-phases' syntax.
parent 658c987f
No related branches found
No related tags found
No related merge requests found
...@@ -118,18 +118,18 @@ (define-public wine ...@@ -118,18 +118,18 @@ (define-public wine
(list "SHELL=bash") (list "SHELL=bash")
#:phases #:phases
(alist-cons-after (modify-phases %standard-phases
'configure 'patch-dlopen-paths (add-after 'configure 'patch-dlopen-paths
;; Hardcode dlopened sonames to absolute paths. ;; Hardcode dlopened sonames to absolute paths.
(lambda _ (lambda _
(let* ((library-path (search-path-as-string->list (let* ((library-path (search-path-as-string->list
(getenv "LIBRARY_PATH"))) (getenv "LIBRARY_PATH")))
(find-so (lambda (soname) (find-so (lambda (soname)
(search-path library-path soname)))) (search-path library-path soname))))
(substitute* "include/config.h" (substitute* "include/config.h"
(("(#define SONAME_.* )\"(.*)\"" _ defso soname) (("(#define SONAME_.* )\"(.*)\"" _ defso soname)
(format #f "~a\"~a\"" defso (find-so soname)))))) (format #f "~a\"~a\"" defso (find-so soname))))
%standard-phases))) #t))))))
(home-page "https://www.winehq.org/") (home-page "https://www.winehq.org/")
(synopsis "Implementation of the Windows API") (synopsis "Implementation of the Windows API")
(description (description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment