14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
21 rev = "0a07fd1b831bc9e9d34e474284430297b63446c7"; # no tag
22 hash = "sha256-Jvxbdm9Swh8m03uZEMTkUhIHNfhE+N2a3w7j+liweKE=";
25 cargoHash = "sha256-/84T7K6WUt2Bfx9qdZjyOHcJEGoquCfRX1ctQBuUjEc=";
27 OPENSSL_NO_VENDOR = true;
29 nativeBuildInputs = [ pkg-config makeWrapper ];
30 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
33 wrapProgram "$out/bin/dmlive" --prefix PATH : "${lib.makeBinPath [ mpv ffmpeg nodejs ]}"
37 description = "A tool to play and record videos or live streams with danmaku";
38 homepage = "https://github.com/THMonster/dmlive";
39 license = licenses.mit;
40 mainProgram = "dmlive";
41 maintainers = with maintainers; [ nickcao ];