hydroxide: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:19:00 -05:00
parent 73cb29e6d9
commit 68705eee2e
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }: { stdenv, buildGoModule, fetchFromGitHub, fetchpatch, Security }:
buildGoModule rec { buildGoModule rec {
pname = "hydroxide"; pname = "hydroxide";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0b19rcif8yiyvhrsjd3q5nsvr580lklamlphx4dk47n456ckcqfp"; modSha256 = "0b19rcif8yiyvhrsjd3q5nsvr580lklamlphx4dk47n456ckcqfp";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
# FIXME: remove with next release # FIXME: remove with next release
patches = [ patches = [
(fetchpatch { (fetchpatch {
@ -23,7 +25,7 @@ buildGoModule rec {
subPackages = [ "cmd/hydroxide" ]; subPackages = [ "cmd/hydroxide" ];
meta = with lib; { meta = with stdenv.lib; {
description = "A third-party, open-source ProtonMail bridge"; description = "A third-party, open-source ProtonMail bridge";
homepage = "https://github.com/emersion/hydroxide"; homepage = "https://github.com/emersion/hydroxide";
license = licenses.mit; license = licenses.mit;

View File

@ -19876,7 +19876,9 @@ in
hydrogen = callPackage ../applications/audio/hydrogen { }; 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 { }; hyper = callPackage ../applications/misc/hyper { };