summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2020-06-15 12:45:03 +0200
committerPierre Neidhardt <mail@ambrevar.xyz>2020-06-15 12:45:03 +0200
commit5b4cef5b1723825747aeb2f73e5464bc0065108d (patch)
treee009d528e74385f52e5a28cf6327b47b5a74983c
parent2d96280fa5fa342cdb505ecc51bd4a58496e917f (diff)
gnu: Add dxvk@1.7.wip-mono
* nongnu/packages/wine.scm (dxvk-1.7): New variable.
-rw-r--r--nongnu/packages/wine.scm60
1 files changed, 60 insertions, 0 deletions
diff --git a/nongnu/packages/wine.scm b/nongnu/packages/wine.scm
index 02523f2..30d1eb8 100644
--- a/nongnu/packages/wine.scm
+++ b/nongnu/packages/wine.scm
@@ -17,10 +17,12 @@
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. 17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18 18
19(define-module (nongnu packages wine) 19(define-module (nongnu packages wine)
20 #:use-module (ice-9 match)
20 #:use-module ((guix licenses) :prefix license:) 21 #:use-module ((guix licenses) :prefix license:)
21 #:use-module (guix packages) 22 #:use-module (guix packages)
22 #:use-module (guix build-system gnu) 23 #:use-module (guix build-system gnu)
23 #:use-module (guix build-system trivial) 24 #:use-module (guix build-system trivial)
25 #:use-module (guix build-system copy)
24 #:use-module (guix download) 26 #:use-module (guix download)
25 #:use-module (guix git-download) 27 #:use-module (guix git-download)
26 #:use-module (gnu packages base) 28 #:use-module (gnu packages base)
@@ -76,3 +78,61 @@ It has a menu of supported games/apps for which it can do all the workarounds
76automatically. It also allows the installation of missing nonfree DLLs and 78automatically. It also allows the installation of missing nonfree DLLs and
77tweaking of various Wine settings.") 79tweaking of various Wine settings.")
78 (license license:lgpl2.1))) 80 (license license:lgpl2.1)))
81
82(define-public dxvk-1.7 ; Upstream Guix dxvk does not build anymore because of missing mingw compiler.
83 (package
84 (name "dxvk")
85 (version "1.7")
86 (home-page "https://github.com/doitsujin/dxvk/")
87 (source (origin
88 (method url-fetch)
89 (uri (string-append
90 "https://github.com/doitsujin/dxvk/releases/download/v"
91 version "/dxvk-" version ".tar.gz") )
92 (sha256
93 (base32
94 "18f7lj6b08abywidsq3s98kiwwn1jbbjzg7clm8bs93cj0wq5mv7"))))
95 (build-system copy-build-system)
96 (arguments
97 `(#:install-plan
98 `(,,@(if (string=? (or (%current-target-system) (%current-system))
99 "x86_64-linux")
100 ''("x64" "share/dxvk/lib")
101 '())
102 ("x32" ,,(if (string=? (or (%current-target-system) (%current-system))
103 "i686-linux")
104 "share/dxvk/lib"
105 "share/dxvk/lib32"))
106 ("setup_dxvk.sh" "bin/setup_dxvk"))
107 #:phases
108 (modify-phases %standard-phases
109 (add-after 'install 'fix-setup
110 (lambda* (#:key inputs outputs system #:allow-other-keys)
111 (let* ((out (assoc-ref outputs "out"))
112 (libs "../share/dxvk")
113 (wine (assoc-ref inputs "wine")))
114 (substitute* (string-append out "/bin/setup_dxvk")
115 (("wine=\"wine\"")
116 (string-append "wine=" wine "/bin/wine"))
117 (("wine64=\"wine64\"")
118 (string-append "wine64=" wine "/bin/wine64"))
119 (("wineboot=\"wineboot\"")
120 (string-append "wineboot=" wine "/bin/wineboot"))
121 (("\"\\$wine_path/\\$wine\"")
122 "\"$wine_path/wine\"")
123 (("x32") (if (string=? system "x86_64-linux")
124 (string-append libs "/lib32")
125 (string-append libs "/lib")))
126 (("x64") (string-append libs "/lib")))))))))
127 (inputs
128 `(("wine" ,(match (or (%current-target-system)
129 (%current-system))
130 ("x86_64-linux" wine64-staging)
131 (_ wine-staging)))))
132 (synopsis "Vulkan-based D3D9, D3D10 and D3D11 implementation for Wine")
133 (description "A Vulkan-based translation layer for Direct3D 9/10/11 which
134allows running complex 3D applications with high performance using Wine.
135
136Use @command{setup_dxvk} to install the required libraries to a Wine prefix.")
137 (supported-systems '("i686-linux" "x86_64-linux"))
138 (license license:zlib)))