Change:
Package name: dxvk Latest released version: <!-- Search your package here: --- Current version on the unstable channel: 2.3.1 Current version on the stable/release channel: 2.3.1 <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
done ''; <del> passthru = { inherit dxvk32 dxvk64; }; </del> <ins> passthru = { inherit dxvk32 dxvk64; }; </ins> __structuredAttrs = true;

## Defaults declare -A dlls=( <ins> [d3d8]="dxvk/d3d8.dll" </ins> [d3d9]="dxvk/d3d9.dll" [d3d10]="dxvk/d3d10.dll dxvk/d3d10_1.dll dxvk/d3d10core.dll" [d3d11]="dxvk/d3d11.dll"

[mcfgthreads]="mcfgthreads/mcfgthread-12.dll" ) <del> declare -A targets=([d3d9]=1 [d3d11]=1 [dxgi]=1) </del> <ins> declare -A targets=([d3d8]=1 [d3d9]=1 [d3d11]=1 [dxgi]=1) </ins> # Option variables

glslang, meson, ninja, <ins> pkg-config, </ins> windows, spirv-headers, vulkan-headers, SDL2, glfw, gitUpdater, <del> sdl2Support ? true, glfwSupport ? false, </del> <ins> sdl2Support ? (!stdenv.hostPlatform.isWindows), glfwSupport ? (!stdenv.hostPlatform.isWindows), </ins> }: <del> # SDL2 and GLFW support are mutually exclusive. assert !sdl2Support || !glfwSupport; </del> <ins> assert stdenv.hostPlatform.isWindows -> !glfwSupport && !sdl2Support; </ins> let <del> isWindows = stdenv.hostPlatform.uname.system == "Windows"; </del> <ins> inherit (stdenv) hostPlatform; libPrefix = lib.optionalString (!hostPlatform.isWindows) "lib"; soVersion = version: if hostPlatform.isDarwin then ".${version}${hostPlatform.extensions.sharedLibrary}" else if hostPlatform.isWindows then hostPlatform.extensions.sharedLibrary else "${hostPlatform.extensions.sharedLibrary}.${version}"; libglfw = "${libPrefix}glfw${soVersion "3"}"; libSDL2 = "${libPrefix}SDL2${lib.optionalString (!hostPlatform.isWindows) "-2.0"}${soVersion "0"}"; </ins> in stdenv.mkDerivation (finalAttrs: { pname = "dxvk"; <del> version = "2.3.1"; </del> <ins> version = "2.4"; </ins> src = fetchFromGitHub { owner = "doitsujin"; repo = "dxvk"; rev = "v${finalAttrs.version}"; <del> hash = "sha256-lUzD1NHFLO4UqOg/BUr7PnYMJCMr1KBh3VNx8etbt8c="; </del> <ins> hash = "sha256-4U0Z1oR0BKIHZ6YNT/+8sFe2I/ZKmPecInMXUho4MHg="; </ins> fetchSubmodules = true; # Needed for the DirectX headers and libdisplay-info }; <del> postPatch = '' substituteInPlace "subprojects/libdisplay-info/tool/gen-search-table.py"  --replace "/usr/bin/env python3" "${lib.getBin pkgsBuildHost.python3}/bin/python3" ''; </del> <ins> postPatch = '' substituteInPlace meson.build  --replace-fail "dependency('glfw'" "dependency('glfw3'" substituteInPlace subprojects/libdisplay-info/tool/gen-search-table.py  --replace-fail "/usr/bin/env python3" "${lib.getBin pkgsBuildHost.python3}/bin/python3" '' + lib.optionalString glfwSupport '' substituteInPlace src/wsi/glfw/wsi_platform_glfw.cpp  --replace-fail '${libglfw}' '${lib.getLib glfw}/lib/${libglfw}' '' + lib.optionalString sdl2Support '' substituteInPlace src/wsi/sdl2/wsi_platform_sdl2.cpp  --replace-fail '${libSDL2}' '${lib.getLib SDL2}/lib/${libSDL2}' ''; </ins> strictDeps = true;

glslang meson ninja <del> ]; </del> <ins> ] ++ lib.optionals (glfwSupport || sdl2Support) [ pkg-config ]; </ins> buildInputs = [ spirv-headers vulkan-headers ] <del> ++ lib.optionals (!isWindows && sdl2Support) [ SDL2 ] ++ lib.optionals (!isWindows && glfwSupport) [ glfw ] ++ lib.optionals isWindows [ windows.pthreads ]; </del> <ins> ++ lib.optionals sdl2Support [ SDL2 ] ++ lib.optionals glfwSupport [ glfw ] ++ lib.optionals hostPlatform.isWindows [ windows.pthreads ]; </ins> # Build with the Vulkan SDK in nixpkgs. preConfigure = ''

mesonBuildType = "release"; <del> mesonFlags = lib.optionals glfwSupport [ "-Ddxvk_native_wsi=glfw" ]; </del> doCheck = true; passthru.updateScript = gitUpdater { rev-prefix = "v"; };

__structuredAttrs = true; meta = { <del> description = "Vulkan-based translation layer for Direct3D 9/10/11"; </del> <ins> description = "Vulkan-based translation layer for Direct3D 8/9/10/11"; </ins> homepage = "https://github.com/doitsujin/dxvk"; changelog = "https://github.com/doitsujin/dxvk/releases"; maintainers = [ lib.maintainers.reckenrode ]; license = lib.licenses.zlib; <del> platforms = lib.platforms.windows ++ lib.platforms.linux; </del> <ins> badPlatforms = lib.platforms.darwin; platforms = lib.platforms.windows ++ lib.platforms.unix; </ins> }; })