Skip to content

Commit 9b275ff

Browse files
committed
dmlive: format with nixfmt
1 parent 7f271a2 commit 9b275ff

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

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

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
{ lib
2-
, rustPlatform
3-
, fetchFromGitHub
4-
, pkg-config
5-
, makeWrapper
6-
, openssl
7-
, mpv
8-
, ffmpeg
9-
, nodejs
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
pkg-config,
6+
makeWrapper,
7+
openssl,
8+
mpv,
9+
ffmpeg,
10+
nodejs,
1011
}:
1112

1213
rustPlatform.buildRustPackage rec {
@@ -24,18 +25,30 @@ rustPlatform.buildRustPackage rec {
2425

2526
OPENSSL_NO_VENDOR = true;
2627

27-
nativeBuildInputs = [ pkg-config makeWrapper ];
28-
buildInputs = [ openssl ];
28+
nativeBuildInputs = [
29+
pkg-config
30+
makeWrapper
31+
];
32+
33+
buildInputs = [
34+
openssl
35+
];
2936

3037
postInstall = ''
31-
wrapProgram "$out/bin/dmlive" --prefix PATH : "${lib.makeBinPath [ mpv ffmpeg nodejs ]}"
38+
wrapProgram "$out/bin/dmlive" --prefix PATH : "${
39+
lib.makeBinPath [
40+
mpv
41+
ffmpeg
42+
nodejs
43+
]
44+
}"
3245
'';
3346

34-
meta = with lib; {
47+
meta = {
3548
description = "Tool to play and record videos or live streams with danmaku";
3649
homepage = "https://github.com/THMonster/dmlive";
37-
license = licenses.mit;
50+
license = lib.licenses.mit;
3851
mainProgram = "dmlive";
39-
maintainers = with maintainers; [ nickcao ];
52+
maintainers = with lib.maintainers; [ nickcao ];
4053
};
4154
}

0 commit comments

Comments
 (0)