summary refs log tree commit diff
path: root/pkgs/tools/misc/octofetch
diff options
context:
space:
mode:
authorKira Bruneau <kira.bruneau@pm.me>2021-11-10 23:07:44 -0500
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-11-10 20:59:57 -0800
commitf356b5f6dc7dfefb4b194f165b1081a6ac98846a (patch)
tree584dad400e6c06eb15d5a441aa860d79e08f4647 /pkgs/tools/misc/octofetch
parent541a551109bd3f63c4cd5088d66d62356fa7a752 (diff)
downloadnixpkgs-f356b5f6dc7dfefb4b194f165b1081a6ac98846a.tar
nixpkgs-f356b5f6dc7dfefb4b194f165b1081a6ac98846a.tar.gz
nixpkgs-f356b5f6dc7dfefb4b194f165b1081a6ac98846a.tar.bz2
nixpkgs-f356b5f6dc7dfefb4b194f165b1081a6ac98846a.tar.lz
nixpkgs-f356b5f6dc7dfefb4b194f165b1081a6ac98846a.tar.xz
nixpkgs-f356b5f6dc7dfefb4b194f165b1081a6ac98846a.tar.zst
nixpkgs-f356b5f6dc7dfefb4b194f165b1081a6ac98846a.zip
octofetch: fix darwin build
Diffstat (limited to 'pkgs/tools/misc/octofetch')
-rw-r--r--pkgs/tools/misc/octofetch/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/misc/octofetch/default.nix b/pkgs/tools/misc/octofetch/default.nix
index 8dd811e3d2f..e0cf9d98d65 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";