From 2189b2595613a887bfdeb12b7f212512c8866425 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 20 Jul 2024 23:59:20 -0500 Subject: [PATCH] rustdesk: fmt --- .../networking/remote/rustdesk/default.nix | 156 ++++++++++-------- 1 file changed, 83 insertions(+), 73 deletions(-) diff --git a/pkgs/applications/networking/remote/rustdesk/default.nix b/pkgs/applications/networking/remote/rustdesk/default.nix index 95550b41ce2c..39ba2dad76a8 100644 --- a/pkgs/applications/networking/remote/rustdesk/default.nix +++ b/pkgs/applications/networking/remote/rustdesk/default.nix @@ -1,37 +1,38 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, pkg-config -, wrapGAppsHook3 -, atk -, bzip2 -, cairo -, dbus -, gdk-pixbuf -, glib -, gst_all_1 -, gtk3 -, libayatana-appindicator -, libgit2 -, libpulseaudio -, libsodium -, libXtst -, libvpx -, libyuv -, libopus -, libaom -, libxkbcommon -, libsciter -, xdotool -, pam -, pango -, zlib -, zstd -, stdenv -, darwin -, alsa-lib -, makeDesktopItem -, copyDesktopItems +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + wrapGAppsHook3, + atk, + bzip2, + cairo, + dbus, + gdk-pixbuf, + glib, + gst_all_1, + gtk3, + libayatana-appindicator, + libgit2, + libpulseaudio, + libsodium, + libXtst, + libvpx, + libyuv, + libopus, + libaom, + libxkbcommon, + libsciter, + xdotool, + pam, + pango, + zlib, + zstd, + stdenv, + darwin, + alsa-lib, + makeDesktopItem, + copyDesktopItems, }: rustPlatform.buildRustPackage rec { @@ -102,42 +103,48 @@ rustPlatform.buildRustPackage rec { # Checks require an active X server doCheck = false; - buildInputs = [ - atk - bzip2 - cairo - dbus - gdk-pixbuf - glib - gst_all_1.gst-plugins-base - gst_all_1.gstreamer - gtk3 - libgit2 - libpulseaudio - libsodium - libXtst - libvpx - libyuv - libopus - libaom - libxkbcommon - pam - pango - zlib - zstd - ] ++ lib.optionals stdenv.isDarwin [ - darwin.apple_sdk.frameworks.AppKit - darwin.apple_sdk.frameworks.CoreAudio - darwin.apple_sdk.frameworks.CoreFoundation - darwin.apple_sdk.frameworks.CoreGraphics - darwin.apple_sdk.frameworks.Foundation - darwin.apple_sdk.frameworks.IOKit - darwin.apple_sdk.frameworks.Security - darwin.apple_sdk.frameworks.SystemConfiguration - ] ++ lib.optionals stdenv.isLinux [ - alsa-lib - xdotool - ]; + buildInputs = + [ + atk + bzip2 + cairo + dbus + gdk-pixbuf + glib + gst_all_1.gst-plugins-base + gst_all_1.gstreamer + gtk3 + libgit2 + libpulseaudio + libsodium + libXtst + libvpx + libyuv + libopus + libaom + libxkbcommon + pam + pango + zlib + zstd + ] + ++ lib.optionals stdenv.isDarwin ( + with darwin.apple_sdk.frameworks; + [ + AppKit + CoreAudio + CoreFoundation + CoreGraphics + Foundation + IOKit + Security + SystemConfiguration + ] + ) + ++ lib.optionals stdenv.isLinux [ + alsa-lib + xdotool + ]; # Add static ui resources and libsciter to same folder as binary so that it # can find them. @@ -165,11 +172,14 @@ rustPlatform.buildRustPackage rec { ZSTD_SYS_USE_PKG_CONFIG = true; }; - meta = with lib; { + meta = { description = "Virtual / remote desktop infrastructure for everyone! Open source TeamViewer / Citrix alternative"; homepage = "https://rustdesk.com"; - license = licenses.agpl3Only; - maintainers = with maintainers; [ ocfox leixb ]; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ + ocfox + leixb + ]; mainProgram = "rustdesk"; }; }