about summary refs log tree commit diff
path: root/pkgs/applications/misc/tickrs
diff options
context:
space:
mode:
authordaizeng1984 <daizeng1984@gmail.com>2021-02-07 14:15:35 -0800
committerdaizeng1984 <daizeng1984@gmail.com>2021-02-07 14:15:35 -0800
commit13028f24f47b5e6b3a433ca1a4715d3def438446 (patch)
treeb9e9c7bb075a917d9aba0ff06a42b113c8433bf6 /pkgs/applications/misc/tickrs
parentf53e0e28c3bc74ca0e45196125a7b2484ab04ce6 (diff)
tickrs: fix build issue for darwin (fatal error: 'Security/Security.h' file not found)
Diffstat (limited to 'pkgs/applications/misc/tickrs')
-rw-r--r--pkgs/applications/misc/tickrs/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/misc/tickrs/default.nix b/pkgs/applications/misc/tickrs/default.nix
index 942384f78f7c2..4452f6434744f 100644
--- a/pkgs/applications/misc/tickrs/default.nix
+++ b/pkgs/applications/misc/tickrs/default.nix
@@ -1,4 +1,4 @@
-{ lib, rustPlatform, fetchFromGitHub, perl }:
+{ lib, stdenv, rustPlatform, fetchFromGitHub, perl, Security }:
 
 rustPlatform.buildRustPackage rec {
   pname = "tickrs";
@@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ perl ];
 
+  buildInputs = lib.optionals stdenv.isDarwin [ Security ];
+
   meta = with lib; {
     description = "Realtime ticker data in your terminal";
     homepage = "https://github.com/tarkah/tickrs";