diff options
author | Kira Bruneau <kira.bruneau@pm.me> | 2021-11-10 23:07:44 -0500 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-11-10 20:59:57 -0800 |
commit | f356b5f6dc7dfefb4b194f165b1081a6ac98846a (patch) | |
tree | 584dad400e6c06eb15d5a441aa860d79e08f4647 /pkgs/tools/misc/octofetch | |
parent | 541a551109bd3f63c4cd5088d66d62356fa7a752 (diff) |
octofetch: fix darwin build
Diffstat (limited to 'pkgs/tools/misc/octofetch')
-rw-r--r-- | pkgs/tools/misc/octofetch/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/misc/octofetch/default.nix b/pkgs/tools/misc/octofetch/default.nix index 8dd811e3d2f7e..e0cf9d98d651d 100644 --- a/pkgs/tools/misc/octofetch/default.nix +++ b/pkgs/tools/misc/octofetch/default.nix @@ -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"; |