{ stdenv , lib , rustPlatform , fetchFromGitHub , pkg-config , openssl , Security }: rustPlatform.buildRustPackage rec { pname = "mpd-discord-rpc"; version = "1.5.3"; src = fetchFromGitHub { owner = "JakeStanger"; repo = pname; rev = "v${version}"; sha256 = "sha256-Iw4n3xcc+589/42SfnAklEWTkgwZKAk84dS8fXXLcvs="; }; cargoSha256 = "sha256-Ss6UUznt9g3XWdeCuMG0y9NxWpGOmHbKsQqOMGOK2jo="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; meta = with lib; { 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; maintainers = with maintainers; [ kranzes ]; }; }