From d99c48fc41a712e6a3dae8e975c2d5eb1c84313b Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 31 Jul 2020 08:00:00 -0500 Subject: [PATCH] the-way: fix build on darwin --- pkgs/development/tools/the-way/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/the-way/default.nix b/pkgs/development/tools/the-way/default.nix index 5a3bdc7b985..a41c7283b0f 100644 --- a/pkgs/development/tools/the-way/default.nix +++ b/pkgs/development/tools/the-way/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform }: +{ stdenv, fetchFromGitHub, rustPlatform, AppKit, Security }: rustPlatform.buildRustPackage rec { pname = "the-way"; @@ -11,6 +11,8 @@ rustPlatform.buildRustPackage rec { sha256 = "0h33jsai8gvfp0js06qa8cqpzfbjkd001kfj6p24d08ds2i00asx"; }; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit Security ]; + cargoSha256 = "1r0mv1q1bz67zbxnd5qmji4svcbln8h5h0gysfddpn4dy9424fp3"; #checkFlags = "--test-threads=1"; doCheck = false; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 77b25f0ea59..71ee0dc0f7f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3327,7 +3327,9 @@ in teamocil = callPackage ../tools/misc/teamocil { }; - the-way = callPackage ../development/tools/the-way { }; + the-way = callPackage ../development/tools/the-way { + inherit (darwin.apple_sdk.frameworks) AppKit Security; + }; tsm-client = callPackage ../tools/backup/tsm-client { jdk8 = null; }; tsm-client-withGui = callPackage ../tools/backup/tsm-client { };