dmlive: format with nixfmt

This commit is contained in:
Nick Cao 2024-11-06 07:58:17 -05:00
parent 7f271a2a68
commit 9b275ff032
No known key found for this signature in database

View File

@ -1,12 +1,13 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, makeWrapper
, openssl
, mpv
, ffmpeg
, nodejs
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
makeWrapper,
openssl,
mpv,
ffmpeg,
nodejs,
}:
rustPlatform.buildRustPackage rec {
@ -24,18 +25,30 @@ rustPlatform.buildRustPackage rec {
OPENSSL_NO_VENDOR = true;
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [ openssl ];
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
openssl
];
postInstall = ''
wrapProgram "$out/bin/dmlive" --prefix PATH : "${lib.makeBinPath [ mpv ffmpeg nodejs ]}"
wrapProgram "$out/bin/dmlive" --prefix PATH : "${
lib.makeBinPath [
mpv
ffmpeg
nodejs
]
}"
'';
meta = with lib; {
meta = {
description = "Tool to play and record videos or live streams with danmaku";
homepage = "https://github.com/THMonster/dmlive";
license = licenses.mit;
license = lib.licenses.mit;
mainProgram = "dmlive";
maintainers = with maintainers; [ nickcao ];
maintainers = with lib.maintainers; [ nickcao ];
};
}