From aee3781ae8c00df9faf29130856caf4445c09dab Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 5 May 2022 14:12:31 -0500 Subject: [PATCH] amazon-qldb-shell: fix on darwin On Darwin, the linker needs access to the Security framework. --- pkgs/development/tools/amazon-qldb-shell/default.nix | 7 +++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/amazon-qldb-shell/default.nix b/pkgs/development/tools/amazon-qldb-shell/default.nix index d017c213415c..5699bc7c61b8 100644 --- a/pkgs/development/tools/amazon-qldb-shell/default.nix +++ b/pkgs/development/tools/amazon-qldb-shell/default.nix @@ -1,10 +1,12 @@ -{ lib +{ stdenv +, lib , clang , cmake , fetchFromGitHub , llvmPackages , rustPlatform , testers +, Security }: let @@ -21,7 +23,8 @@ let }; nativeBuildInputs = [ clang cmake ]; - buildInputs = [ llvmPackages.libclang ]; + buildInputs = [ llvmPackages.libclang ] + ++ lib.optional stdenv.isDarwin Security; cargoSha256 = "sha256-y3dNEa2U9mwsENPda44zweszlk4UJXGtfeH+er8mi0U="; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 44224353a2a8..03149a011be6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1652,7 +1652,9 @@ with pkgs; amazon-ecs-cli = callPackage ../tools/virtualization/amazon-ecs-cli { }; - amazon-qldb-shell = callPackage ../development/tools/amazon-qldb-shell { }; + amazon-qldb-shell = callPackage ../development/tools/amazon-qldb-shell { + inherit (darwin.apple_sdk.frameworks) Security; + }; amber = callPackage ../tools/text/amber { inherit (darwin.apple_sdk.frameworks) Security;