nixpkgs/pkgs/by-name/dm/dmlive/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1020 B
Nix
Raw Normal View History

2024-11-06 12:58:17 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
makeWrapper,
openssl,
mpv,
ffmpeg,
nodejs,
2022-08-13 07:41:41 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "dmlive";
version = "5.5.4";
2022-08-13 07:41:41 +00:00
src = fetchFromGitHub {
owner = "THMonster";
repo = pname;
rev = "688ddda12ed70a7ad25ede63e948e1cba143a307"; # no tag
hash = "sha256-M7IZ2UzusWovyhigyUXasmSEz4J79gnFyivHVUqfUKg=";
2022-08-13 07:41:41 +00:00
};
cargoHash = "sha256-d3vI2iv2Db1XZQc3uaNfkUpDyNKPvHkb/0zEwRTOWZ0=";
2022-08-13 07:41:41 +00:00
OPENSSL_NO_VENDOR = true;
2024-11-06 12:58:17 +00:00
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
openssl
];
2022-08-13 07:41:41 +00:00
postInstall = ''
2024-11-06 12:58:17 +00:00
wrapProgram "$out/bin/dmlive" --prefix PATH : "${
lib.makeBinPath [
mpv
ffmpeg
nodejs
]
}"
2022-08-13 07:41:41 +00:00
'';
2024-11-06 12:58:17 +00:00
meta = {
2022-08-13 07:41:41 +00:00
description = "Tool to play and record videos or live streams with danmaku";
homepage = "https://github.com/THMonster/dmlive";
2024-11-06 12:58:17 +00:00
license = lib.licenses.mit;
mainProgram = "dmlive";
2024-11-06 12:58:17 +00:00
maintainers = with lib.maintainers; [ nickcao ];
2022-08-13 07:41:41 +00:00
};
}