39 lines
932 B
Nix
39 lines
932 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitHub,
|
||
|
|
pkg-config,
|
||
|
|
openssl,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "mpd-discord-rpc";
|
||
|
|
version = "1.9.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "JakeStanger";
|
||
|
|
repo = "mpd-discord-rpc";
|
||
|
|
rev = "v${version}";
|
||
|
|
hash = "sha256-Aqxh6dVZI59FGFtuyC5KcuaEr2OZL/A4UHSpnthR0Uk=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-L4hQ1NAzddiPv6DxY8mcMQ6GlRdhIr+LeY9TtFbx3Mw=";
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
pkg-config
|
||
|
|
];
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
openssl
|
||
|
|
];
|
||
|
|
|
||
|
|
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/";
|
||
|
|
changelog = "https://github.com/JakeStanger/mpd-discord-rpc/blob/${src.rev}/CHANGELOG.md";
|
||
|
|
license = licenses.mit;
|
||
|
|
maintainers = with maintainers; [ kranzes ];
|
||
|
|
mainProgram = "mpd-discord-rpc";
|
||
|
|
};
|
||
|
|
}
|