mpd-discord-rpc: fix build on darwin

Add missing Security framework as input.
This commit is contained in:
Sebastián Mancilla 2022-07-09 23:49:22 -04:00
parent 0f234e382c
commit 6375863e93
2 changed files with 5 additions and 3 deletions

View file

@ -4,6 +4,7 @@
, fetchFromGitHub
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
@ -21,10 +22,9 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
meta = with lib; {
broken = stdenv.isDarwin;
description = "Rust application which displays your currently playing song / album / artist from MPD in Discord using Rich Presence";
homepage = "https://github.com/JakeStanger/mpd-discord-rpc";
license = licenses.mit;

View file

@ -4214,7 +4214,9 @@ with pkgs;
mpdris2 = callPackage ../tools/audio/mpdris2 { };
mpd-discord-rpc = callPackage ../tools/audio/mpd-discord-rpc { };
mpd-discord-rpc = callPackage ../tools/audio/mpd-discord-rpc {
inherit (darwin.apple_sdk.frameworks) Security;
};
mpd-mpris = callPackage ../tools/audio/mpd-mpris { };