qq: nixfmt

This commit is contained in:
wxt
2024-10-25 21:41:21 +08:00
parent e0908966b0
commit 2f3847af4f
+44 -31
View File
@@ -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
];
};
}