From 6ea8bb2ed7bbd0ec16125e9aeff0e9eed4217a44 Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Sat, 27 Jul 2024 15:36:50 +0200 Subject: [PATCH] melonDS: format with `nixfmt-rfc-style` --- pkgs/by-name/me/melonDS/package.nix | 54 +++++++++++++++++------------ 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/pkgs/by-name/me/melonDS/package.nix b/pkgs/by-name/me/melonDS/package.nix index 8fb3d7bb6a64..29ccfb28358c 100644 --- a/pkgs/by-name/me/melonDS/package.nix +++ b/pkgs/by-name/me/melonDS/package.nix @@ -21,7 +21,8 @@ let qtbase qtmultimedia qtwayland - wrapQtAppsHook; + wrapQtAppsHook + ; in stdenv.mkDerivation (finalAttrs: { pname = "melonDS"; @@ -40,38 +41,45 @@ stdenv.mkDerivation (finalAttrs: { wrapQtAppsHook ]; - buildInputs = [ - SDL2 - extra-cmake-modules - libarchive - libslirp - libGL - qtbase - qtmultimedia - zstd - ] ++ lib.optionals stdenv.isLinux [ - wayland - qtwayland - ]; + buildInputs = + [ + SDL2 + extra-cmake-modules + libarchive + libslirp + libGL + qtbase + qtmultimedia + zstd + ] + ++ lib.optionals stdenv.isLinux [ + wayland + qtwayland + ]; - cmakeFlags = [ - (lib.cmakeBool "USE_QT6" true) - ]; + cmakeFlags = [ (lib.cmakeBool "USE_QT6" true) ]; strictDeps = true; - qtWrapperArgs = lib.optionals stdenv.isLinux [ - "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap wayland ]}" - ] ++ lib.optionals stdenv.isDarwin [ - "--prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" - ]; + qtWrapperArgs = + lib.optionals stdenv.isLinux [ + "--prefix LD_LIBRARY_PATH : ${ + lib.makeLibraryPath [ + libpcap + wayland + ] + }" + ] + ++ lib.optionals stdenv.isDarwin [ + "--prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" + ]; installPhase = lib.optionalString stdenv.isDarwin '' runHook preInstall mkdir -p $out/Applications cp -r melonDS.app $out/Applications/ runHook postInstall - ''; + ''; passthru = { updateScript = unstableGitUpdater { };