Skip to content

Commit c9b4e47

Browse files
committed
patch wine to support UNC paths
1 parent 44f2822 commit c9b4e47

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

overlays/wine.nix

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@
22
# files from TH code) for GHC built with msvcrt (ghc<9.6).
33
# This will inevitably replace *any* wine version. Thus this might not really be what we ultimately want.
44
# 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+
}

0 commit comments

Comments
 (0)