From 2f3847af4f82d231e1ff6a4ff6a354c1c003db23 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 25 Oct 2024 21:41:21 +0800 Subject: [PATCH] qq: nixfmt --- pkgs/by-name/qq/qq/package.nix | 75 ++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/pkgs/by-name/qq/qq/package.nix b/pkgs/by-name/qq/qq/package.nix index 6615c4133f8a..0678dd5a7eec 100644 --- a/pkgs/by-name/qq/qq/package.nix +++ b/pkgs/by-name/qq/qq/package.nix @@ -1,30 +1,31 @@ -{ alsa-lib -, libuuid -, cups -, dpkg -, fetchurl -, glib -, libssh2 -, gtk3 -, lib -, libayatana-appindicator -, libdrm -, libgcrypt -, libkrb5 -, libnotify -, mesa # for libgbm -, libpulseaudio -, libGL -, nss -, xorg -, systemd -, stdenv -, vips -, at-spi2-core -, autoPatchelfHook -, makeShellWrapper -, wrapGAppsHook3 -, commandLineArgs ? "" +{ + alsa-lib, + libuuid, + cups, + dpkg, + fetchurl, + glib, + libssh2, + gtk3, + lib, + libayatana-appindicator, + libdrm, + libgcrypt, + libkrb5, + libnotify, + mesa, # for libgbm + libpulseaudio, + libGL, + nss, + xorg, + systemd, + stdenv, + vips, + at-spi2-core, + autoPatchelfHook, + makeShellWrapper, + wrapGAppsHook3, + commandLineArgs ? "", }: let @@ -39,7 +40,8 @@ let hash = sources.arm64_hash; }; }; - src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + src = + srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); in stdenv.mkDerivation { pname = "qq"; @@ -87,7 +89,12 @@ stdenv.mkDerivation { makeShellWrapper $out/opt/QQ/qq $out/bin/qq \ --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \ --prefix LD_PRELOAD : "${lib.makeLibraryPath [ libssh2 ]}/libssh2.so.1" \ - --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL libuuid ]}" \ + --prefix LD_LIBRARY_PATH : "${ + lib.makeLibraryPath [ + libGL + libuuid + ] + }" \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime}}" \ --add-flags ${lib.escapeShellArg commandLineArgs} \ "''${gappsWrapperArgs[@]}" @@ -113,9 +120,15 @@ stdenv.mkDerivation { meta = with lib; { homepage = "https://im.qq.com/linuxqq/"; description = "Messaging app"; - platforms = [ "x86_64-linux" "aarch64-linux" ]; + platforms = [ + "x86_64-linux" + "aarch64-linux" + ]; license = licenses.unfree; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - maintainers = with lib.maintainers; [ fee1-dead bot-wxt1221 ]; + maintainers = with lib.maintainers; [ + fee1-dead + bot-wxt1221 + ]; }; }