tickrs: fix build issue for darwin (fatal error: 'Security/Security.h' file not found)

This commit is contained in:
daizeng1984 2021-02-07 14:15:35 -08:00
parent f53e0e28c3
commit 13028f24f4
2 changed files with 6 additions and 2 deletions

View File

@ -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";

View File

@ -25173,7 +25173,9 @@ in
ticpp = callPackage ../development/libraries/ticpp { };
tickrs = callPackage ../applications/misc/tickrs { };
tickrs = callPackage ../applications/misc/tickrs {
inherit (darwin.apple_sdk.frameworks) Security;
};
tig = callPackage ../applications/version-management/git-and-tools/tig { };