Merge pull request #180923 from smancill/mpd-discord-rpc-darwin

mpd-discord-rpc: fix build on darwin
This commit is contained in:
Rick van Schijndel 2022-07-10 20:07:06 +02:00 committed by GitHub
commit 7dd0705958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -4217,7 +4217,9 @@ with pkgs;
mpdris2 = callPackage ../tools/audio/mpdris2 { }; 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 { }; mpd-mpris = callPackage ../tools/audio/mpd-mpris { };