1{
2 callPackage,
3 fetchurl,
4 fetchpatch,
5}:
6
7callPackage ./generic.nix rec {
8 version = "6.14.1";
9 src = fetchurl {
10 url = "https://dl.winehq.org/mono/sources/mono/mono-${version}.tar.xz";
11 hash = "sha256-MCTJfAvIy81hHEAdX5lFKHBBCM6zHzGyjepHgwBNCCA=";
12 };
13 extraPatches = [
14 # https://gitlab.winehq.org/mono/mono/-/merge_requests/101
15 # fixes a pointer cast on aarch64 that causes crashes
16 (fetchpatch {
17 url = "https://gitlab.winehq.org/mono/mono/-/commit/2224c6915a98f870cc9a3a9f9e3698e7b20e3d27.patch";
18 hash = "sha256-qyc3t1OyDzWBSnNW+W2YpdgFfTBs1Ew13jwdGKs09u0=";
19 })
20 ];
21}