ffsend: fix build on darwin

This commit is contained in:
Andrey Kuznetsov 2021-04-26 12:42:59 +03:00
parent ee04d772e4
commit 9b2ec3bc72
No known key found for this signature in database
GPG key ID: A3748A3281F25743
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,6 @@
{ lib, stdenv, fetchFromGitLab, rustPlatform, cmake, pkg-config, openssl
, darwin, installShellFiles
, installShellFiles
, CoreFoundation, CoreServices, Security, AppKit, libiconv
, x11Support ? stdenv.isLinux || stdenv.hostPlatform.isBSD
, xclip ? null, xsel ? null
@ -29,7 +30,7 @@ buildRustPackage rec {
nativeBuildInputs = [ cmake pkg-config installShellFiles ];
buildInputs =
if stdenv.isDarwin then (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security AppKit ])
if stdenv.isDarwin then [ libiconv CoreFoundation CoreServices Security AppKit ]
else [ openssl ];
preBuild = lib.optionalString (x11Support && usesX11) (

View file

@ -4451,7 +4451,9 @@ in
ferm = callPackage ../tools/networking/ferm { };
ffsend = callPackage ../tools/misc/ffsend { };
ffsend = callPackage ../tools/misc/ffsend {
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security AppKit;
};
fgallery = callPackage ../tools/graphics/fgallery { };