Skip to content

Commit 2f3847a

Browse files
committed
qq: nixfmt
1 parent e090896 commit 2f3847a

File tree

1 file changed

+44
-31
lines changed

1 file changed

+44
-31
lines changed

pkgs/by-name/qq/qq/package.nix

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
{ alsa-lib
2-
, libuuid
3-
, cups
4-
, dpkg
5-
, fetchurl
6-
, glib
7-
, libssh2
8-
, gtk3
9-
, lib
10-
, libayatana-appindicator
11-
, libdrm
12-
, libgcrypt
13-
, libkrb5
14-
, libnotify
15-
, mesa # for libgbm
16-
, libpulseaudio
17-
, libGL
18-
, nss
19-
, xorg
20-
, systemd
21-
, stdenv
22-
, vips
23-
, at-spi2-core
24-
, autoPatchelfHook
25-
, makeShellWrapper
26-
, wrapGAppsHook3
27-
, commandLineArgs ? ""
1+
{
2+
alsa-lib,
3+
libuuid,
4+
cups,
5+
dpkg,
6+
fetchurl,
7+
glib,
8+
libssh2,
9+
gtk3,
10+
lib,
11+
libayatana-appindicator,
12+
libdrm,
13+
libgcrypt,
14+
libkrb5,
15+
libnotify,
16+
mesa, # for libgbm
17+
libpulseaudio,
18+
libGL,
19+
nss,
20+
xorg,
21+
systemd,
22+
stdenv,
23+
vips,
24+
at-spi2-core,
25+
autoPatchelfHook,
26+
makeShellWrapper,
27+
wrapGAppsHook3,
28+
commandLineArgs ? "",
2829
}:
2930

3031
let
@@ -39,7 +40,8 @@ let
3940
hash = sources.arm64_hash;
4041
};
4142
};
42-
src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
43+
src =
44+
srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
4345
in
4446
stdenv.mkDerivation {
4547
pname = "qq";
@@ -87,7 +89,12 @@ stdenv.mkDerivation {
8789
makeShellWrapper $out/opt/QQ/qq $out/bin/qq \
8890
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
8991
--prefix LD_PRELOAD : "${lib.makeLibraryPath [ libssh2 ]}/libssh2.so.1" \
90-
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL libuuid ]}" \
92+
--prefix LD_LIBRARY_PATH : "${
93+
lib.makeLibraryPath [
94+
libGL
95+
libuuid
96+
]
97+
}" \
9198
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime}}" \
9299
--add-flags ${lib.escapeShellArg commandLineArgs} \
93100
"''${gappsWrapperArgs[@]}"
@@ -113,9 +120,15 @@ stdenv.mkDerivation {
113120
meta = with lib; {
114121
homepage = "https://im.qq.com/linuxqq/";
115122
description = "Messaging app";
116-
platforms = [ "x86_64-linux" "aarch64-linux" ];
123+
platforms = [
124+
"x86_64-linux"
125+
"aarch64-linux"
126+
];
117127
license = licenses.unfree;
118128
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
119-
maintainers = with lib.maintainers; [ fee1-dead bot-wxt1221 ];
129+
maintainers = with lib.maintainers; [
130+
fee1-dead
131+
bot-wxt1221
132+
];
120133
};
121134
}

0 commit comments

Comments
 (0)