From f4839bfc43864ded5ba47ba1adcae67e3a9e456c Mon Sep 17 00:00:00 2001 From: Andrey Kuznetsov Date: Tue, 11 May 2021 00:35:08 +0300 Subject: [PATCH] nym: fix build on darwin --- pkgs/applications/networking/nym/default.nix | 7 +++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/nym/default.nix b/pkgs/applications/networking/nym/default.nix index 9251862ba6ee..1dc41f3af97c 100644 --- a/pkgs/applications/networking/nym/default.nix +++ b/pkgs/applications/networking/nym/default.nix @@ -1,8 +1,11 @@ -{ lib +{ stdenv +, lib , rustPlatform , fetchFromGitHub , pkg-config , openssl +, Security +, libiconv }: rustPlatform.buildRustPackage rec { @@ -20,7 +23,7 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv ]; patches = [ ./ignore-networking-tests.patch ]; checkType = "debug"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 24fbb63792be..13073bf6a9c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7146,7 +7146,9 @@ in nylon = callPackage ../tools/networking/nylon { }; - nym = callPackage ../applications/networking/nym { }; + nym = callPackage ../applications/networking/nym { + inherit (darwin.apple_sdk.frameworks) Security; + }; nzbget = callPackage ../tools/networking/nzbget { };