From 5e94e24b14a4cfb02b7ca1ec3b0141c4a8a4b534 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 21 Sep 2021 08:01:11 -0400 Subject: [PATCH] hors: fix darwin build --- pkgs/development/tools/hors/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/hors/default.nix b/pkgs/development/tools/hors/default.nix index 1632d74f9145..579a2a27922f 100644 --- a/pkgs/development/tools/hors/default.nix +++ b/pkgs/development/tools/hors/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromGitHub }: +{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }: rustPlatform.buildRustPackage rec { pname = "hors"; @@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-1PB/JvgfC6qABI+cIePqtsSlZXPqMGQIay9SCXJkV9o="; + buildInputs = lib.optional stdenv.isDarwin Security; + # requires network access doCheck = false; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aa93baae26e2..1e01406fec86 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24888,7 +24888,9 @@ with pkgs; gtk = gtk3; }; - hors = callPackage ../development/tools/hors { }; + hors = callPackage ../development/tools/hors { + inherit (darwin.apple_sdk.frameworks) Security; + }; hover = callPackage ../development/tools/hover { };