Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
fetchurl,
|
|
pkg-config,
|
|
makeWrapper,
|
|
openssl,
|
|
mpv,
|
|
ffmpeg_6,
|
|
nodejs,
|
|
}:
|
|
|
|
let
|
|
desktop = fetchurl {
|
|
url = "https://github.com/THMonster/Revda/raw/e1c236f6f940443419b6202735b6f8a0c9cdbe8b/misc/dmlive-mime.desktop";
|
|
hash = "sha256-k4h0cSfjuTZAYLjbaTfcye1aC5obd6D3tAZjgBV8xCI=";
|
|
};
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "dmlive";
|
|
version = "5.6.0-unstable-2025-06-21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "THMonster";
|
|
repo = "dmlive";
|
|
rev = "485eae06737530360c0e6f6415c62791767d595b"; # no tag
|
|
hash = "sha256-0JjPZPtAtbxdh0HDycWHEonZggBcoqv5SJUnhKzXNIk=";
|
|
};
|
|
|
|
cargoHash = "sha256-B1v9m4Nn5wXMbNBlh7+A8zBejJ0tHdqvSXVpRz+wC5g=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/dmlive" --suffix PATH : "${
|
|
lib.makeBinPath [
|
|
mpv
|
|
ffmpeg_6
|
|
nodejs
|
|
]
|
|
}"
|
|
install -Dm644 ${desktop} $out/share/applications/dmlive-mime.desktop
|
|
'';
|
|
|
|
env.OPENSSL_NO_VENDOR = true;
|
|
|
|
meta = {
|
|
description = "Tool to play and record videos or live streams with danmaku";
|
|
homepage = "https://github.com/THMonster/dmlive";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "dmlive";
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
}
|