rustdesk: fmt

This commit is contained in:
Austin Horstman 2024-07-20 23:59:20 -05:00
parent 3995beae6d
commit 2189b25956
No known key found for this signature in database

View File

@ -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";
};
}