dmlive: format with nixfmt
This commit is contained in:
parent
7f271a2a68
commit
9b275ff032
@ -1,12 +1,13 @@
|
|||||||
{ lib
|
{
|
||||||
, rustPlatform
|
lib,
|
||||||
, fetchFromGitHub
|
rustPlatform,
|
||||||
, pkg-config
|
fetchFromGitHub,
|
||||||
, makeWrapper
|
pkg-config,
|
||||||
, openssl
|
makeWrapper,
|
||||||
, mpv
|
openssl,
|
||||||
, ffmpeg
|
mpv,
|
||||||
, nodejs
|
ffmpeg,
|
||||||
|
nodejs,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -24,18 +25,30 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
OPENSSL_NO_VENDOR = true;
|
OPENSSL_NO_VENDOR = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ openssl ];
|
pkg-config
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
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";
|
description = "Tool to play and record videos or live streams with danmaku";
|
||||||
homepage = "https://github.com/THMonster/dmlive";
|
homepage = "https://github.com/THMonster/dmlive";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
mainProgram = "dmlive";
|
mainProgram = "dmlive";
|
||||||
maintainers = with maintainers; [ nickcao ];
|
maintainers = with lib.maintainers; [ nickcao ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user