transmission-rss: fix build on darwin

This commit is contained in:
Elian Doran 2024-05-19 11:22:16 +03:00
parent 90621f1d9d
commit 0028fc6a5e
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }:
rustPlatform.buildRustPackage rec {
version = "0.3.1";
@ -16,7 +16,11 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-QNMdqoxxY8ao2O44hJxZNgLrPwzu9+ieweTPc7pfFY4=";
nativeBuildInputs = [pkg-config];
buildInputs = [openssl];
buildInputs = [openssl]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
Security
SystemConfiguration
]);
OPENSSL_NO_VENDOR = 1;