10 src = fetchFromGitHub {
14 hash = "sha256-P1UaXGboOiqrXapfLzJI6IT3esNtflkQkcNXt4Umukc=";
17 core = buildGoModule {
18 name = "mpv-discord-core";
21 src = "${src}/mpv-discord";
23 vendorHash = "sha256-xe1jyWFQUD+Z4qBAVQ0SBY0gdxmi5XG9t29n3f/WKDs=";
27 pname = "mpv-discord";
30 scriptPath = "scripts/discord.lua";
33 substituteInPlace $out/share/mpv/scripts/discord.lua \
34 --replace-fail 'binary_path = ""' 'binary_path = "${core}/bin/mpv-discord"'
38 description = "Cross-platform Discord Rich Presence integration for mpv with no external dependencies";
39 homepage = "https://github.com/tnychn/mpv-discord";
40 license = lib.licenses.mit;
41 platforms = lib.platforms.all;
42 maintainers = with lib.maintainers; [ bddvlpr ];