From 68705eee2e1878367f58205f0dd4281a16173741 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 21 Mar 2020 05:19:00 -0500 Subject: [PATCH] hydroxide: fix build on darwin --- pkgs/applications/networking/hydroxide/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/hydroxide/default.nix b/pkgs/applications/networking/hydroxide/default.nix index 75c1cdaece96..d3f45f7f0385 100644 --- a/pkgs/applications/networking/hydroxide/default.nix +++ b/pkgs/applications/networking/hydroxide/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, fetchpatch }: +{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch, Security }: buildGoModule rec { pname = "hydroxide"; @@ -13,6 +13,8 @@ buildGoModule rec { modSha256 = "0b19rcif8yiyvhrsjd3q5nsvr580lklamlphx4dk47n456ckcqfp"; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + # FIXME: remove with next release patches = [ (fetchpatch { @@ -23,7 +25,7 @@ buildGoModule rec { subPackages = [ "cmd/hydroxide" ]; - meta = with lib; { + meta = with stdenv.lib; { description = "A third-party, open-source ProtonMail bridge"; homepage = "https://github.com/emersion/hydroxide"; license = licenses.mit; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fb5c2ff4af1e..476336b5228e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19876,7 +19876,9 @@ in hydrogen = callPackage ../applications/audio/hydrogen { }; - hydroxide = callPackage ../applications/networking/hydroxide { }; + hydroxide = callPackage ../applications/networking/hydroxide { + inherit (darwin.apple_sdk.frameworks) Security; + }; hyper = callPackage ../applications/misc/hyper { };