@@ -1,4 +1,4 @@
1−{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
1+{ stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "gitoxide";
@@ -14,14 +14,14 @@ rustPlatform.buildRustPackage rec {
1414 cargoSha256 = "mitUyf/z7EgjKzFy8ZER8Ceoe9tk6r0ctSYdDG87rIU=";
1515
1616 nativeBuildInputs = [ pkg-config ];
17− buildInputs = [ openssl ];
17+ buildInputs = [ openssl ]
18+ ++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
1819
1920 # Needed to get openssl-sys to use pkgconfig.
2021 OPENSSL_NO_VENDOR = 1;
2122
22− meta = with lib; {
23− description =
24− "A command-line application for interacting with git repositories";
23+ meta = with stdenv.lib; {
24+ description = "A command-line application for interacting with git repositories";
2525 homepage = "https://github.com/Byron/gitoxide";
2626 license = with licenses; [ mit /* or */ asl20 ];
2727 maintainers = [ maintainers.syberant ];