From 85ed8a0cf115b583896e792d6a624e28e4d1c13e Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 5 Feb 2026 16:17:11 -0500 Subject: [PATCH] wine: Get rid of unnecessary eta expansion in `default.nix` No point making a function just to call it with a single (tiny) argument just once! --- pkgs/applications/emulators/wine/default.nix | 87 +++++++++----------- 1 file changed, 41 insertions(+), 46 deletions(-) diff --git a/pkgs/applications/emulators/wine/default.nix b/pkgs/applications/emulators/wine/default.nix index 1d34ce36b5b1..af3bb80b02c0 100644 --- a/pkgs/applications/emulators/wine/default.nix +++ b/pkgs/applications/emulators/wine/default.nix @@ -47,49 +47,44 @@ moltenvk, # Allow users to override MoltenVK easily }: -let - wine-build = - build: - lib.getAttr build ( - callPackage ./packages.nix { - inherit wineRelease; - supportFlags = { - inherit - alsaSupport - cairoSupport - cupsSupport - cursesSupport - dbusSupport - embedInstallers - fontconfigSupport - gettextSupport - gphoto2Support - gstreamerSupport - gtkSupport - krb5Support - mingwSupport - netapiSupport - odbcSupport - openclSupport - openglSupport - pcapSupport - pulseaudioSupport - saneSupport - sdlSupport - tlsSupport - udevSupport - usbSupport - v4lSupport - vaSupport - vulkanSupport - waylandSupport - x11Support - ffmpegSupport - xineramaSupport - ; - }; - inherit moltenvk; - } - ); -in -wine-build wineBuild +lib.getAttr wineBuild ( + callPackage ./packages.nix { + inherit wineRelease; + supportFlags = { + inherit + alsaSupport + cairoSupport + cupsSupport + cursesSupport + dbusSupport + embedInstallers + fontconfigSupport + gettextSupport + gphoto2Support + gstreamerSupport + gtkSupport + krb5Support + mingwSupport + netapiSupport + odbcSupport + openclSupport + openglSupport + pcapSupport + pulseaudioSupport + saneSupport + sdlSupport + tlsSupport + udevSupport + usbSupport + v4lSupport + vaSupport + vulkanSupport + waylandSupport + x11Support + ffmpegSupport + xineramaSupport + ; + }; + inherit moltenvk; + } +)