Unverified Commit 9b275ff0 authored by Nick Cao's avatar Nick Cao
Browse files

dmlive: format with nixfmt

parent 7f271a2a
Loading
Loading
Loading
Loading
+28 −15
Original line number Diff line number Diff line
{ 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 ];
  };
}