File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 stdenv ,
44 fetchFromGitHub ,
5+ fetchpatch2 ,
56 pkgsBuildHost ,
67 glslang ,
78 meson ,
3738in
3839stdenv . mkDerivation ( finalAttrs : {
3940 pname = "dxvk" ;
40- version = "2.4 " ;
41+ version = "2.5 " ;
4142
4243 src = fetchFromGitHub {
4344 owner = "doitsujin" ;
4445 repo = "dxvk" ;
4546 rev = "v${ finalAttrs . version } " ;
46- hash = "sha256-4U0Z1oR0BKIHZ6YNT/+8sFe2I/ZKmPecInMXUho4MHg =" ;
47+ hash = "sha256-JwEKmzYnoDhad0VKadQYEqraMogXn7BFI9kmT9F+Ts0 =" ;
4748 fetchSubmodules = true ; # Needed for the DirectX headers and libdisplay-info
4849 } ;
4950
51+ patches = [
52+ # Fixes `ERROR: Index 2 out of bounds of array of size 2` error on native builds.
53+ ( fetchpatch2 {
54+ url = "https://github.com/doitsujin/dxvk/commit/e6209d28cd9c51ad371605db4c0de27547c0d28c.patch?full_index=1" ;
55+ hash = "sha256-zKO6YXOUKBnwcijzCldDzmDqXSkf+wWe9KmUlhsaTyM=" ;
56+ } )
57+ # Fixes missing symbol error when building with GLFW support enabled.
58+ ( fetchpatch2 {
59+ url = "https://github.com/doitsujin/dxvk/commit/62ef4854a6accf2b042f25f44db667abadc0b3fd.patch?full_index=1" ;
60+ hash = "sha256-oXybFqoD68gTLHO1kDHll4XCfpU+s9E+PmaXQFqEy/g=" ;
61+ } )
62+ ] ;
63+
5064 postPatch =
5165 ''
5266 substituteInPlace meson.build \
@@ -102,5 +116,12 @@ stdenv.mkDerivation (finalAttrs: {
102116 license = lib . licenses . zlib ;
103117 badPlatforms = lib . platforms . darwin ;
104118 platforms = lib . platforms . windows ++ lib . platforms . unix ;
119+ pkgConfigModules = [
120+ "dxvk-d3d10core"
121+ "dxvk-d3d11"
122+ "dxvk-d3d8"
123+ "dxvk-d3d9"
124+ "dxvk-dxgi"
125+ ] ;
105126 } ;
106127} )
You can’t perform that action at this time.
0 commit comments