octofetch: fix darwin build

This commit is contained in:
Kira Bruneau 2021-11-10 23:07:44 -05:00 committed by Jonathan Ringer
parent 541a551109
commit f356b5f6dc
2 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,10 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
@ -19,7 +21,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256:1ddyzbpsiy54r13nb9yrm64cbbifixnhkskwg5fvhhzj4ri4ks4a";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
meta = with lib; {
description = "Github user information on terminal";

View File

@ -8049,7 +8049,9 @@ with pkgs;
ocserv = callPackage ../tools/networking/ocserv { };
octofetch = callPackage ../tools/misc/octofetch { };
octofetch = callPackage ../tools/misc/octofetch {
inherit (darwin.apple_sdk.frameworks) Security;
};
oha = callPackage ../tools/networking/oha {
inherit (darwin.apple_sdk.frameworks) Security;