15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
22 rev = "3736d83ac0920de78ac82fe331bc6b16dc72b5cd"; # no tag
23 hash = "sha256-3agUeAv6Nespn6GNw4wmy8HNPQ0VIgZAMnKiV/myKbA=";
26 cargoHash = "sha256-MxkWaEn/gMMOuje7lu7PlqsQjnF0LWpV9JzmFBG1ukU=";
28 OPENSSL_NO_VENDOR = true;
30 nativeBuildInputs = [ pkg-config makeWrapper ];
31 buildInputs = [ openssl ]
32 ++ lib.optionals stdenv.isDarwin [ configd Security ];
35 wrapProgram "$out/bin/dmlive" --prefix PATH : "${lib.makeBinPath [ mpv ffmpeg nodejs ]}"
39 description = "A tool to play and record videos or live streams with danmaku";
40 homepage = "https://github.com/THMonster/dmlive";
41 license = licenses.mit;
42 mainProgram = "dmlive";
43 maintainers = with maintainers; [ nickcao ];