2014-11-15 08:02:30 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-04-15 07:07:10 -04:00
|
|
|
|
;;; Copyright © 2014, 2015 Sou Bunnbu <iyzsong@gmail.com>
|
2016-02-20 16:29:52 -05:00
|
|
|
|
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
|
2018-01-10 12:48:06 -05:00
|
|
|
|
;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
2019-01-06 04:53:56 -05:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
|
2020-01-24 14:21:27 -05:00
|
|
|
|
;;; Copyright © 2017, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2022-01-15 19:00:13 -05:00
|
|
|
|
;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-03-28 11:56:44 -04:00
|
|
|
|
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
|
2022-05-07 11:36:07 -04:00
|
|
|
|
;;; Copyright © 2022 Liliana Marie Prikler <liliana.prikler@gmail.com>
|
2023-02-02 16:23:34 -05:00
|
|
|
|
;;; Copyright © 2023 Kaelyn Takata <kaelyn.alexi@protonmail.com>
|
2014-11-15 08:02:30 -05:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages wine)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
2022-05-07 11:36:07 -04:00
|
|
|
|
#:use-module (guix gexp)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (guix download)
|
2018-08-22 23:11:19 -04:00
|
|
|
|
#:use-module (guix git-download)
|
2016-02-20 16:29:52 -05:00
|
|
|
|
#:use-module (guix utils)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2019-03-28 11:56:44 -04:00
|
|
|
|
#:use-module (guix build-system meson)
|
2018-03-12 05:32:45 -04:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages)
|
2017-12-07 04:05:31 -05:00
|
|
|
|
#:use-module (gnu packages admin)
|
2015-10-05 06:19:21 -04:00
|
|
|
|
#:use-module (gnu packages audio)
|
2018-03-12 05:40:59 -04:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2018-03-12 05:32:45 -04:00
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
|
#:use-module (gnu packages bash)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages bison)
|
2015-10-05 06:19:21 -04:00
|
|
|
|
#:use-module (gnu packages cups)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages databases)
|
|
|
|
|
#:use-module (gnu packages fontutils)
|
|
|
|
|
#:use-module (gnu packages flex)
|
|
|
|
|
#:use-module (gnu packages image)
|
|
|
|
|
#:use-module (gnu packages gettext)
|
|
|
|
|
#:use-module (gnu packages ghostscript)
|
|
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
|
#:use-module (gnu packages glib)
|
2017-12-07 04:05:31 -05:00
|
|
|
|
#:use-module (gnu packages gstreamer)
|
2017-12-24 09:34:49 -05:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2018-04-30 04:26:39 -04:00
|
|
|
|
#:use-module (gnu packages kerberos)
|
2021-01-24 19:09:08 -05:00
|
|
|
|
#:use-module (gnu packages libusb)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages linux)
|
2019-03-28 11:56:44 -04:00
|
|
|
|
#:use-module (gnu packages mingw)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages openldap)
|
|
|
|
|
#:use-module (gnu packages perl)
|
2017-02-25 04:16:12 -05:00
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2018-03-12 05:40:59 -04:00
|
|
|
|
#:use-module (gnu packages python)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages mp3)
|
|
|
|
|
#:use-module (gnu packages photo)
|
|
|
|
|
#:use-module (gnu packages samba)
|
|
|
|
|
#:use-module (gnu packages scanner)
|
2018-03-12 06:30:30 -04:00
|
|
|
|
#:use-module (gnu packages sdl)
|
gnu: Rename module gnutls to tls.
* gnu/packages/gnutls.scm: Rename to...
* gnu/packages/tls.scm: ... this. Change module name accordingly.
* gnu/packages/{admin.scm, cups.scm, curl.scm, dc.scm, dns.scm, emacs.scm,
ftp.scm, gnome.scm, gnunet.scm, gnupg.scm, gsasl.scm, lynx.scm,
mail.scm, messaging.scm, package-management.scm, shishi.scm,
task-management.scm, version-control.scm, video.scm, vpn.scm,
webkit.scm, weechat.scm, wget.scm, wine.scm, xml.scm}: Adapt module
import to new name.
* gnu-system.am (GNU_SYSTEM_MODULES): Rename gnutls module to tls.
2015-07-03 15:41:22 -04:00
|
|
|
|
#:use-module (gnu packages tls)
|
2017-12-07 04:05:31 -05:00
|
|
|
|
#:use-module (gnu packages video)
|
2018-01-31 03:34:47 -05:00
|
|
|
|
#:use-module (gnu packages vulkan)
|
2014-11-15 08:02:30 -05:00
|
|
|
|
#:use-module (gnu packages xml)
|
2017-12-31 15:56:22 -05:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2019-01-24 03:13:11 -05:00
|
|
|
|
#:use-module (ice-9 match)
|
|
|
|
|
#:use-module (srfi srfi-1))
|
2014-11-15 08:02:30 -05:00
|
|
|
|
|
2023-02-02 16:23:59 -05:00
|
|
|
|
;; This minimal build of Wine is needed to prevent a circular dependency with
|
|
|
|
|
;; vkd3d.
|
|
|
|
|
(define-public wine-minimal
|
2014-11-15 08:02:30 -05:00
|
|
|
|
(package
|
2023-02-02 16:23:59 -05:00
|
|
|
|
(name "wine-minimal")
|
2023-02-02 16:23:34 -05:00
|
|
|
|
(version "8.0")
|
2020-01-24 14:21:27 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2020-03-03 11:26:37 -05:00
|
|
|
|
(uri (let ((dir (string-append
|
|
|
|
|
(version-major version)
|
|
|
|
|
(if (string-suffix? ".0" (version-major+minor version))
|
|
|
|
|
".0/"
|
2020-03-03 11:33:28 -05:00
|
|
|
|
".x/"))))
|
|
|
|
|
(string-append "https://dl.winehq.org/wine/source/" dir
|
|
|
|
|
"wine-" version ".tar.xz")))
|
2020-01-24 14:21:27 -05:00
|
|
|
|
(sha256
|
2023-02-02 16:23:34 -05:00
|
|
|
|
(base32 "0bkr3klvjy8h4djddr31fvapsi9pc2rsiyhaa7j1lwpq704w4wh2"))))
|
2014-11-15 08:02:30 -05:00
|
|
|
|
(build-system gnu-build-system)
|
2023-02-02 16:23:59 -05:00
|
|
|
|
(native-inputs (list bison flex))
|
|
|
|
|
(inputs `())
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
;; Force a 32-bit build targeting a similar architecture, i.e.:
|
|
|
|
|
;; armhf for armhf/aarch64, i686 for i686/x86_64.
|
|
|
|
|
#:system (match (%current-system)
|
|
|
|
|
((or "armhf-linux" "aarch64-linux") "armhf-linux")
|
|
|
|
|
(_ "i686-linux"))
|
|
|
|
|
|
|
|
|
|
;; XXX: There's a test suite, but it's unclear whether it's supposed to
|
|
|
|
|
;; pass.
|
|
|
|
|
#:tests? #f
|
|
|
|
|
|
|
|
|
|
#:make-flags
|
|
|
|
|
#~(list "SHELL=bash"
|
|
|
|
|
(string-append "libdir=" #$output "/lib/wine32"))
|
|
|
|
|
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-SHELL
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
;; configure first respects CONFIG_SHELL, clobbers SHELL later.
|
|
|
|
|
(("/bin/sh")
|
|
|
|
|
(which "bash")))))
|
|
|
|
|
(add-after 'configure 'patch-dlopen-paths
|
|
|
|
|
;; Hardcode dlopened sonames to absolute paths.
|
|
|
|
|
(lambda _
|
|
|
|
|
(let* ((library-path (search-path-as-string->list
|
|
|
|
|
(getenv "LIBRARY_PATH")))
|
|
|
|
|
(find-so (lambda (soname)
|
|
|
|
|
(search-path library-path soname))))
|
|
|
|
|
(substitute* "include/config.h"
|
|
|
|
|
(("(#define SONAME_.* )\"(.*)\"" _ defso soname)
|
|
|
|
|
(format #f "~a\"~a\"" defso (find-so soname)))))))
|
|
|
|
|
(add-after 'patch-generated-file-shebangs 'patch-makedep
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* "tools/makedep.c"
|
|
|
|
|
(("output_filenames\\( unix_libs \\);" all)
|
|
|
|
|
(string-append all
|
2023-02-02 16:24:21 -05:00
|
|
|
|
"output ( \" -Wl,-rpath=%s \", arch_install_dirs[arch] );")))))
|
|
|
|
|
(add-before 'build 'set-widl-time-override
|
|
|
|
|
;; Set WIDL_TIME_OVERRIDE to avoid embedding the current date in
|
|
|
|
|
;; files generated by WIDL.
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "WIDL_TIME_OVERRIDE" "315532800"))))
|
2023-02-02 16:23:59 -05:00
|
|
|
|
#:configure-flags
|
|
|
|
|
#~(list "--without-freetype"
|
|
|
|
|
"--without-x")))
|
|
|
|
|
(home-page "https://www.winehq.org/")
|
|
|
|
|
(synopsis "Implementation of the Windows API (32-bit only)")
|
|
|
|
|
(description
|
|
|
|
|
"Wine (originally an acronym for \"Wine Is Not an Emulator\") is a
|
|
|
|
|
compatibility layer capable of running Windows applications. Instead of
|
|
|
|
|
simulating internal Windows logic like a virtual machine or emulator, Wine
|
|
|
|
|
translates Windows API calls into POSIX calls on-the-fly, eliminating the
|
|
|
|
|
performance and memory penalties of other methods and allowing you to cleanly
|
|
|
|
|
integrate Windows applications into your desktop.")
|
|
|
|
|
;; Any platform should be able to build wine, but based on '#:system' these
|
|
|
|
|
;; are the ones we currently support.
|
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux" "armhf-linux"))
|
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
|
|
|
|
(define-public wine
|
|
|
|
|
(package
|
|
|
|
|
(inherit wine-minimal)
|
|
|
|
|
(name "wine")
|
2020-03-03 11:26:37 -05:00
|
|
|
|
(native-inputs
|
2023-02-02 16:23:59 -05:00
|
|
|
|
(modify-inputs (package-native-inputs wine-minimal)
|
|
|
|
|
(prepend gettext-minimal perl pkg-config)))
|
2014-11-15 08:02:30 -05:00
|
|
|
|
(inputs
|
2022-01-15 19:00:13 -05:00
|
|
|
|
;; Some libraries like libjpeg are now compiled into native PE objects.
|
|
|
|
|
;; The ELF objects provided by Guix packages are of no use. Whilst this
|
|
|
|
|
;; is technically bundling, it's quite defensible. It might be possible
|
|
|
|
|
;; to build some of these from Guix PACKAGE-SOURCE but attempts were not
|
|
|
|
|
;; fruitful so far. See <https://www.winehq.org/announce/7.0>.
|
2022-05-07 11:36:07 -04:00
|
|
|
|
(list alsa-lib
|
2023-02-02 16:23:59 -05:00
|
|
|
|
bash-minimal
|
2022-05-07 11:36:07 -04:00
|
|
|
|
cups
|
|
|
|
|
dbus
|
|
|
|
|
eudev
|
|
|
|
|
fontconfig
|
|
|
|
|
freetype
|
|
|
|
|
gnutls
|
|
|
|
|
gst-plugins-base
|
|
|
|
|
libgphoto2
|
|
|
|
|
openldap
|
|
|
|
|
samba
|
|
|
|
|
sane-backends
|
|
|
|
|
libpcap
|
|
|
|
|
libusb
|
|
|
|
|
libice
|
|
|
|
|
libx11
|
|
|
|
|
libxi
|
|
|
|
|
libxext
|
|
|
|
|
libxcursor
|
|
|
|
|
libxrender
|
|
|
|
|
libxrandr
|
|
|
|
|
libxinerama
|
|
|
|
|
libxxf86vm
|
|
|
|
|
libxcomposite
|
|
|
|
|
mit-krb5
|
|
|
|
|
openal
|
|
|
|
|
pulseaudio
|
|
|
|
|
sdl2
|
|
|
|
|
unixodbc
|
|
|
|
|
v4l-utils
|
|
|
|
|
vkd3d
|
|
|
|
|
vulkan-loader))
|
2014-11-15 08:02:30 -05:00
|
|
|
|
(arguments
|
2023-02-02 16:23:59 -05:00
|
|
|
|
(substitute-keyword-arguments (package-arguments wine-minimal)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
#~(modify-phases #$phases
|
2022-05-07 11:36:07 -04:00
|
|
|
|
;; Explicitly set the 32-bit version of vulkan-loader when installing
|
|
|
|
|
;; to i686-linux or x86_64-linux.
|
|
|
|
|
;; TODO: Add more JSON files as they become available in Mesa.
|
|
|
|
|
#$@(match (%current-system)
|
|
|
|
|
((or "i686-linux" "x86_64-linux")
|
|
|
|
|
`((add-after 'install 'wrap-executable
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(icd (string-append out "/share/vulkan/icd.d")))
|
|
|
|
|
(mkdir-p icd)
|
|
|
|
|
(copy-file (search-input-file
|
|
|
|
|
inputs
|
|
|
|
|
"/share/vulkan/icd.d/radeon_icd.i686.json")
|
|
|
|
|
(string-append icd "/radeon_icd.i686.json"))
|
|
|
|
|
(copy-file (search-input-file
|
|
|
|
|
inputs
|
|
|
|
|
"/share/vulkan/icd.d/intel_icd.i686.json")
|
|
|
|
|
(string-append icd "/intel_icd.i686.json"))
|
|
|
|
|
(wrap-program (string-append out "/bin/wine-preloader")
|
|
|
|
|
`("VK_ICD_FILENAMES" ":" =
|
|
|
|
|
(,(string-append icd
|
|
|
|
|
"/radeon_icd.i686.json" ":"
|
|
|
|
|
icd "/intel_icd.i686.json")))))))))
|
|
|
|
|
(_
|
2023-02-02 16:23:59 -05:00
|
|
|
|
`()))))
|
|
|
|
|
((#:configure-flags _ '()) #~'())))))
|
2017-06-16 07:36:58 -04:00
|
|
|
|
|
|
|
|
|
(define-public wine64
|
|
|
|
|
(package
|
|
|
|
|
(inherit wine)
|
|
|
|
|
(name "wine64")
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(inputs (modify-inputs (package-inputs wine)
|
|
|
|
|
(prepend wine)))
|
2017-06-16 07:36:58 -04:00
|
|
|
|
(arguments
|
2023-02-02 16:24:08 -05:00
|
|
|
|
(substitute-keyword-arguments
|
|
|
|
|
(strip-keyword-arguments '(#:system) (package-arguments wine))
|
|
|
|
|
((#:make-flags _)
|
|
|
|
|
#~(list "SHELL=bash"
|
|
|
|
|
(string-append "libdir=" #$output "/lib/wine64"))
|
|
|
|
|
)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
#~(modify-phases #$phases
|
|
|
|
|
;; Explicitly set both the 64-bit and 32-bit versions of vulkan-loader
|
|
|
|
|
;; when installing to x86_64-linux so both are available.
|
|
|
|
|
;; TODO: Add more JSON files as they become available in Mesa.
|
|
|
|
|
#$@(match (%current-system)
|
|
|
|
|
((or "x86_64-linux")
|
|
|
|
|
`((delete 'wrap-executable)
|
|
|
|
|
(add-after 'copy-wine32-binaries 'wrap-executable
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(icd-files (map
|
|
|
|
|
(lambda (basename)
|
|
|
|
|
(search-input-file
|
|
|
|
|
inputs
|
|
|
|
|
(string-append "/share/vulkan/icd.d/"
|
|
|
|
|
basename)))
|
|
|
|
|
'("radeon_icd.x86_64.json"
|
|
|
|
|
"intel_icd.x86_64.json"
|
|
|
|
|
"radeon_icd.i686.json"
|
|
|
|
|
"intel_icd.i686.json"))))
|
|
|
|
|
(wrap-program (string-append out "/bin/wine-preloader")
|
|
|
|
|
`("VK_ICD_FILENAMES" ":" = ,icd-files))
|
|
|
|
|
(wrap-program (string-append out "/bin/wine64-preloader")
|
|
|
|
|
`("VK_ICD_FILENAMES" ":" = ,icd-files)))))))
|
|
|
|
|
(_
|
|
|
|
|
`()))
|
|
|
|
|
(add-after 'install 'copy-wine32-binaries
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
;; Copy the 32-bit binaries needed for WoW64.
|
|
|
|
|
(copy-file (search-input-file inputs "/bin/wine")
|
|
|
|
|
(string-append out "/bin/wine"))
|
|
|
|
|
;; Copy the real 32-bit wine-preloader instead of the wrapped
|
|
|
|
|
;; version.
|
|
|
|
|
(copy-file (search-input-file inputs "/bin/.wine-preloader-real")
|
|
|
|
|
(string-append out "/bin/wine-preloader")))))
|
|
|
|
|
(add-after 'install 'copy-wine32-libraries
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(copy-recursively (search-input-directory inputs "/lib/wine32")
|
|
|
|
|
(string-append out "/lib/wine32")))))
|
|
|
|
|
(add-after 'compress-documentation 'copy-wine32-manpage
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref %outputs "out")))
|
|
|
|
|
;; Copy the missing man file for the wine binary from wine.
|
|
|
|
|
(copy-file (search-input-file inputs "/share/man/man1/wine.1.gz")
|
|
|
|
|
(string-append out "/share/man/man1/wine.1.gz")))))))
|
|
|
|
|
((#:configure-flags configure-flags '())
|
|
|
|
|
#~(cons "--enable-win64" #$configure-flags))))
|
2018-01-02 05:33:16 -05:00
|
|
|
|
(synopsis "Implementation of the Windows API (WoW64 version)")
|
2017-10-31 16:48:02 -04:00
|
|
|
|
(supported-systems '("x86_64-linux" "aarch64-linux"))))
|
2017-07-03 12:10:11 -04:00
|
|
|
|
|
2018-03-12 05:32:45 -04:00
|
|
|
|
(define-public wine-staging-patchset-data
|
|
|
|
|
(package
|
2019-01-11 04:59:01 -05:00
|
|
|
|
(name "wine-staging-patchset-data")
|
2023-02-02 16:23:42 -05:00
|
|
|
|
(version "8.0")
|
2019-01-11 04:59:01 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/wine-staging/wine-staging")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2023-02-02 16:23:42 -05:00
|
|
|
|
(base32 "11q9fa1jdrv1pd9piaicgqvidq1c08imkwpqhyzcj5r711rl7581"))))
|
2019-01-11 04:59:01 -05:00
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list bash coreutils))
|
2019-01-11 04:59:01 -05:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
(let* ((build-directory ,(string-append name "-" version))
|
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
|
(bash (assoc-ref %build-inputs "bash"))
|
|
|
|
|
(coreutils (assoc-ref %build-inputs "coreutils"))
|
|
|
|
|
(out (assoc-ref %outputs "out"))
|
|
|
|
|
(wine-staging (string-append out "/share/wine-staging")))
|
|
|
|
|
(copy-recursively source build-directory)
|
|
|
|
|
(with-directory-excursion build-directory
|
|
|
|
|
(substitute* "patches/patchinstall.sh"
|
|
|
|
|
(("/bin/sh")
|
|
|
|
|
(string-append bash "/bin/sh")))
|
|
|
|
|
(substitute* "patches/gitapply.sh"
|
|
|
|
|
(("/usr/bin/env")
|
|
|
|
|
(string-append coreutils "/bin/env"))))
|
|
|
|
|
(copy-recursively build-directory wine-staging)
|
|
|
|
|
#t))))
|
|
|
|
|
(home-page "https://github.com/wine-staging")
|
|
|
|
|
(synopsis "Patchset for Wine")
|
|
|
|
|
(description
|
|
|
|
|
"wine-staging-patchset-data contains the patchset to build Wine-Staging.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
2018-03-12 05:32:45 -04:00
|
|
|
|
|
2017-12-24 04:36:35 -05:00
|
|
|
|
(define-public wine-staging
|
|
|
|
|
(package
|
|
|
|
|
(inherit wine)
|
|
|
|
|
(name "wine-staging")
|
2018-03-12 05:40:59 -04:00
|
|
|
|
(version (package-version wine-staging-patchset-data))
|
2020-01-24 14:22:01 -05:00
|
|
|
|
(source
|
2020-07-08 08:14:54 -04:00
|
|
|
|
(let* ((wine-version (version-major+minor version))
|
|
|
|
|
(subdirectory (string-append
|
|
|
|
|
(version-major version)
|
|
|
|
|
(if (string-suffix? ".0" wine-version)
|
|
|
|
|
".0"
|
|
|
|
|
".x"))))
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://dl.winehq.org/wine/source/"
|
|
|
|
|
subdirectory "/"
|
|
|
|
|
"wine-" wine-version ".tar.xz"))
|
|
|
|
|
(file-name (string-append name "-" wine-version ".tar.xz"))
|
|
|
|
|
(sha256
|
2023-02-02 16:23:42 -05:00
|
|
|
|
(base32 "0bkr3klvjy8h4djddr31fvapsi9pc2rsiyhaa7j1lwpq704w4wh2")))))
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(inputs (modify-inputs (package-inputs wine)
|
|
|
|
|
(prepend autoconf ; for autoreconf
|
|
|
|
|
ffmpeg
|
|
|
|
|
gtk+
|
|
|
|
|
libva
|
|
|
|
|
mesa
|
|
|
|
|
python
|
|
|
|
|
util-linux ; for hexdump
|
|
|
|
|
wine-staging-patchset-data)))
|
2018-01-31 03:34:47 -05:00
|
|
|
|
(arguments
|
2022-05-07 05:47:45 -04:00
|
|
|
|
(substitute-keyword-arguments (package-arguments wine)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
#~(modify-phases #$phases
|
|
|
|
|
(delete 'patch-SHELL)
|
|
|
|
|
(add-before 'configure 'apply-wine-staging-patches
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(invoke (search-input-file
|
|
|
|
|
inputs
|
|
|
|
|
"/share/wine-staging/patches/patchinstall.sh")
|
|
|
|
|
"DESTDIR=."
|
|
|
|
|
"--all")))
|
|
|
|
|
(add-after 'apply-wine-staging-patches 'patch-SHELL
|
|
|
|
|
(assoc-ref #$phases 'patch-SHELL))))))
|
2018-01-02 02:25:23 -05:00
|
|
|
|
(synopsis "Implementation of the Windows API (staging branch, 32-bit only)")
|
2017-12-24 04:36:35 -05:00
|
|
|
|
(description "Wine-Staging is the testing area of Wine. It
|
|
|
|
|
contains bug fixes and features, which have not been integrated into
|
|
|
|
|
the development branch yet. The idea of Wine-Staging is to provide
|
|
|
|
|
experimental features faster to end users and to give developers the
|
|
|
|
|
possibility to discuss and improve their patches before they are
|
|
|
|
|
integrated into the main branch.")
|
2018-03-12 05:40:59 -04:00
|
|
|
|
(home-page "https://github.com/wine-staging")
|
2017-12-24 04:36:35 -05:00
|
|
|
|
;; In addition to the regular Wine license (lgpl2.1+), Wine-Staging
|
|
|
|
|
;; provides Liberation and WenQuanYi Micro Hei fonts. Those use
|
|
|
|
|
;; different licenses. In particular, the latter is licensed under
|
|
|
|
|
;; both GPL3+ and Apache 2 License.
|
|
|
|
|
(license
|
|
|
|
|
(list license:lgpl2.1+ license:silofl1.1 license:gpl3+ license:asl2.0))))
|
2017-12-24 10:00:15 -05:00
|
|
|
|
|
|
|
|
|
(define-public wine64-staging
|
|
|
|
|
(package
|
|
|
|
|
(inherit wine-staging)
|
|
|
|
|
(name "wine64-staging")
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(inputs (modify-inputs (package-inputs wine-staging)
|
|
|
|
|
(prepend wine-staging)))
|
2017-12-24 10:00:15 -05:00
|
|
|
|
(arguments
|
2022-05-07 05:47:45 -04:00
|
|
|
|
(substitute-keyword-arguments (package-arguments wine64)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
#~(modify-phases #$phases
|
|
|
|
|
(delete 'patch-SHELL)
|
|
|
|
|
(add-before 'configure 'apply-wine-staging-patches
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(invoke (search-input-file
|
|
|
|
|
inputs
|
|
|
|
|
"/share/wine-staging/patches/patchinstall.sh")
|
|
|
|
|
"DESTDIR=."
|
|
|
|
|
"--all")))
|
|
|
|
|
(add-after 'apply-wine-staging-patches 'patch-SHELL
|
|
|
|
|
(assoc-ref #$phases 'patch-SHELL))))))
|
2018-01-02 05:34:17 -05:00
|
|
|
|
(synopsis "Implementation of the Windows API (staging branch, WoW64
|
2017-12-24 10:00:15 -05:00
|
|
|
|
version)")
|
|
|
|
|
(supported-systems '("x86_64-linux" "aarch64-linux"))))
|
2019-03-28 11:56:44 -04:00
|
|
|
|
|
|
|
|
|
(define dxvk32
|
|
|
|
|
;; This package provides 32-bit dxvk libraries on 64-bit systems.
|
|
|
|
|
(package
|
|
|
|
|
(name "dxvk32")
|
2020-03-03 04:26:11 -05:00
|
|
|
|
(version "1.5.5")
|
2019-03-28 11:56:44 -04:00
|
|
|
|
(home-page "https://github.com/doitsujin/dxvk/")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url home-page)
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-03-03 04:26:11 -05:00
|
|
|
|
"1inl0qswgvbp0fs76md86ilqf9mbshkpjm8ga81khn9zd6v3fvan"))))
|
2019-03-28 11:56:44 -04:00
|
|
|
|
(build-system meson-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:system "i686-linux"
|
|
|
|
|
#:configure-flags (list "--cross-file"
|
|
|
|
|
(string-append (assoc-ref %build-inputs "source")
|
|
|
|
|
"/build-wine32.txt"))))
|
|
|
|
|
(native-inputs
|
2021-12-16 17:55:05 -05:00
|
|
|
|
`(("glslang" ,glslang)))
|
2019-12-19 10:20:18 -05:00
|
|
|
|
(inputs
|
|
|
|
|
`(("wine" ,wine-staging)))
|
|
|
|
|
(synopsis "Vulkan-based D3D9, D3D10 and D3D11 implementation for Wine")
|
|
|
|
|
(description "A Vulkan-based translation layer for Direct3D 9/10/11 which
|
2019-03-28 11:56:44 -04:00
|
|
|
|
allows running complex 3D applications with high performance using Wine.
|
|
|
|
|
|
|
|
|
|
Use @command{setup_dxvk} to install the required libraries to a Wine prefix.")
|
|
|
|
|
(supported-systems '("x86_64-linux"))
|
|
|
|
|
(license license:zlib)))
|
|
|
|
|
|
|
|
|
|
(define-public dxvk
|
|
|
|
|
(package
|
|
|
|
|
(inherit dxvk32)
|
|
|
|
|
(name "dxvk")
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags (list "--cross-file"
|
|
|
|
|
(string-append (assoc-ref %build-inputs "source")
|
|
|
|
|
"/build-wine"
|
2019-11-02 07:01:49 -04:00
|
|
|
|
,(match (%current-system)
|
|
|
|
|
("x86_64-linux" "64")
|
|
|
|
|
(_ "32"))
|
2019-03-28 11:56:44 -04:00
|
|
|
|
".txt"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
,@(if (string=? (%current-system) "x86_64-linux")
|
|
|
|
|
`((add-after 'unpack 'install-32
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(dxvk32 (assoc-ref inputs "dxvk32")))
|
|
|
|
|
(mkdir-p (string-append out "/lib32"))
|
|
|
|
|
(copy-recursively (string-append dxvk32 "/lib")
|
2020-02-29 11:10:46 -05:00
|
|
|
|
(string-append out "/lib32"))
|
|
|
|
|
#t))))
|
2019-03-28 11:56:44 -04:00
|
|
|
|
'())
|
|
|
|
|
(add-after 'install 'install-setup
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin/setup_dxvk")))
|
|
|
|
|
(mkdir-p (string-append out "/bin"))
|
|
|
|
|
(copy-file "../source/setup_dxvk.sh"
|
|
|
|
|
bin)
|
|
|
|
|
(chmod bin #o755)
|
|
|
|
|
(substitute* bin
|
|
|
|
|
(("wine=\"wine\"")
|
|
|
|
|
(string-append "wine=" (assoc-ref inputs "wine") "/bin/wine"))
|
|
|
|
|
(("x32") ,(match (%current-system)
|
|
|
|
|
("x86_64-linux" "../lib32")
|
|
|
|
|
(_ "../lib")))
|
|
|
|
|
(("x64") "../lib"))))))))
|
2019-11-02 07:01:49 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("wine" ,(match (%current-system)
|
2019-12-19 10:20:18 -05:00
|
|
|
|
;; ("x86_64-linux" wine64)
|
|
|
|
|
("x86_64-linux" wine64-staging)
|
|
|
|
|
;; ("x86_64-linux" mingw-w64-x86_64)
|
2019-03-28 11:56:44 -04:00
|
|
|
|
(_ wine)))
|
|
|
|
|
,@(match (%current-system)
|
|
|
|
|
("x86_64-linux"
|
|
|
|
|
`(("dxvk32" ,dxvk32)))
|
2020-02-14 04:07:54 -05:00
|
|
|
|
(_ '()))))
|
2019-03-28 11:56:44 -04:00
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux"))))
|