From 1571a1aacffb491372880efffef8fc404d7c2a73 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 25 Jul 2023 01:55:33 -0700 Subject: [PATCH] rustdesk-server: fix darwin builds --- pkgs/servers/rustdesk-server/default.nix | 6 +++++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/rustdesk-server/default.nix b/pkgs/servers/rustdesk-server/default.nix index df151c658579..20f3b525e546 100644 --- a/pkgs/servers/rustdesk-server/default.nix +++ b/pkgs/servers/rustdesk-server/default.nix @@ -1,8 +1,10 @@ -{ lib +{ stdenv +, lib , rustPlatform , fetchFromGitHub , pkg-config , libsodium +, Security , sqlite , nix-update-script , testers @@ -36,6 +38,8 @@ rustPlatform.buildRustPackage rec { buildInputs = [ libsodium sqlite + ] ++ lib.optionals stdenv.isDarwin [ + Security ]; passthru = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b2c19c3d125f..09609f9cb1f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12523,7 +12523,9 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; - rustdesk-server = callPackage ../servers/rustdesk-server { }; + rustdesk-server = callPackage ../servers/rustdesk-server { + inherit (darwin.apple_sdk.frameworks) Security; + }; rustypaste = callPackage ../servers/rustypaste { };