2022-05-28 13:22:26 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-02-17 16:26:11 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-06-16 22:15:02 +00:00
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2022-07-10 03:49:22 +00:00
|
|
|
, Security
|
2022-02-17 16:26:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mpd-discord-rpc";
|
2022-06-21 23:32:07 +00:00
|
|
|
version = "1.5.2";
|
2022-02-17 16:26:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JakeStanger";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-06-21 23:32:07 +00:00
|
|
|
sha256 = "sha256-/QWIoP6KcrI8cYTh3x2lQz7nPSvzb1zRWg8TFoYY9vE=";
|
2022-02-17 16:26:11 +00:00
|
|
|
};
|
|
|
|
|
2022-06-21 23:32:07 +00:00
|
|
|
cargoSha256 = "sha256-46PS1+ud7GYuMOJMp93Hf7+nlngvgL67zedaF44TcYY=";
|
2022-06-16 22:15:02 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-07-10 03:49:22 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
2022-02-17 16:26:11 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|