Loading pkgs/by-name/dm/dmlive/package.nix +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 { Loading @@ -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 ]; }; } Loading
pkgs/by-name/dm/dmlive/package.nix +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 { Loading @@ -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 ]; }; }