From d5ca8dea78dbdfe54ebed8781d8795fd030baa75 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 9 Jun 2018 17:14:38 -0500 Subject: [PATCH] synapse-bt: fix darwin build --- pkgs/applications/networking/p2p/synapse-bt/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/p2p/synapse-bt/default.nix b/pkgs/applications/networking/p2p/synapse-bt/default.nix index c8d54e945bf9..2c257a1294ac 100644 --- a/pkgs/applications/networking/p2p/synapse-bt/default.nix +++ b/pkgs/applications/networking/p2p/synapse-bt/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl }: +{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, Security }: rustPlatform.buildRustPackage rec { name = "synapse-bt-unstable-${version}"; @@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1psrmgf6ddzqwx7gf301rx84asfnvxpsvkx2fan453v65819k960"; - buildInputs = [ pkgconfig openssl ]; + buildInputs = [ pkgconfig openssl ] ++ stdenv.lib.optional stdenv.isDarwin Security; cargoBuildFlags = [ "--all" ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e645b0a2a02c..f09e321d3b15 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17187,7 +17187,9 @@ with pkgs; inherit (gnome3) libgee; }; - synapse-bt = callPackage ../applications/networking/p2p/synapse-bt { }; + synapse-bt = callPackage ../applications/networking/p2p/synapse-bt { + inherit (darwin.apple_sdk.frameworks) Security; + }; synfigstudio = callPackage ../applications/graphics/synfigstudio { fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; };