File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 2
2
# files from TH code) for GHC built with msvcrt (ghc<9.6).
3
3
# This will inevitably replace *any* wine version. Thus this might not really be what we ultimately want.
4
4
# Wine 5.4 does not build on macOS so that is not pinned and TH code will probably break.
5
- final : prev : {
6
- winePackages = prev . winePackages // {
7
- minimal = prev . winePackages . minimal . overrideAttrs ( oldAttrs : {
8
- patches = oldAttrs . patches or [ ] ++ [ ./patches/wine-add-dll-directory.patch ] ;
9
- } ) ;
10
- } ;
11
- }
5
+ final : prev :
6
+ prev . lib . optionalAttrs ( ! prev . stdenv . hostPlatform . isDarwin ) {
7
+ winePackages = prev . winePackages // {
8
+ minimal = prev . winePackages . minimal . overrideAttrs ( oldAttrs : {
9
+ name = "wine-5.4" ;
10
+ version = "5.4" ;
11
+ src = prev . fetchurl {
12
+ url = "https://dl.winehq.org/wine/source/5.x/wine-5.4.tar.xz" ;
13
+ sha256 = "sha256-Sz4rD/pUFfGZVA5gUcKMOXb86R6lv7LPSgmcJXMXBSw=" ;
14
+ } ;
15
+ patches = [ ] ++ [ ./patches/wine-add-dll-directory.patch ] ;
16
+ # Turning off the tests as there is a problem with the `schedsvc` test.
17
+ # With recent nixpkgs both the IDL files generate `_c.c` files with
18
+ # `handle_t rpc_handle` and that results in a linker error (duplicate symbols).
19
+ configureFlags = oldAttrs . configureFlags or [ ] ++ [ "--disable-tests" ] ;
20
+ } ) ;
21
+ } ;
22
+ }
You can’t perform that action at this time.
0 commit comments