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
3031let
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 } " ) ;
4345in
4446stdenv . 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[@]}"
@@ -110,12 +117,18 @@ stdenv.mkDerivation {
110117
111118 passthru . updateScript = ./update.sh ;
112119
113- meta = with lib ; {
120+ meta = {
114121 homepage = "https://im.qq.com/linuxqq/" ;
115122 description = "Messaging app" ;
116- platforms = [ "x86_64-linux" "aarch64-linux" ] ;
117- license = licenses . unfree ;
118- sourceProvenance = with sourceTypes ; [ binaryNativeCode ] ;
119- maintainers = with lib . maintainers ; [ fee1-dead bot-wxt1221 ] ;
123+ platforms = [
124+ "x86_64-linux"
125+ "aarch64-linux"
126+ ] ;
127+ license = lib . licenses . unfree ;
128+ sourceProvenance = with lib . sourceTypes ; [ binaryNativeCode ] ;
129+ maintainers = with lib . maintainers ; [
130+ fee1-dead
131+ bot-wxt1221
132+ ] ;
120133 } ;
121134}
0 commit comments