about summary refs log tree commit diff
path: root/pkgs/development/tools/amazon-qldb-shell
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-05-05 14:12:31 -0500
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2022-05-05 14:12:31 -0500
commitaee3781ae8c00df9faf29130856caf4445c09dab (patch)
treed097858cad7723229a9c5e005b52874fc7337ac5 /pkgs/development/tools/amazon-qldb-shell
parenta1439bc96590dae913369f4515ca3df6ca1a1556 (diff)
amazon-qldb-shell: fix on darwin
On Darwin, the linker needs access to the Security framework.
Diffstat (limited to 'pkgs/development/tools/amazon-qldb-shell')
-rw-r--r--pkgs/development/tools/amazon-qldb-shell/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/tools/amazon-qldb-shell/default.nix b/pkgs/development/tools/amazon-qldb-shell/default.nix
index d017c213415c6..5699bc7c61b8e 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=";