Unverified Commit 0b301b61 authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

dmlive: use new darwin sdk pattern, move to by-name (#354013)

parents cfa8f533 9b275ff0
Loading
Loading
Loading
Loading
+28 −19
Original line number Diff line number Diff line
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, makeWrapper
, openssl
, configd
, Security
, mpv
, ffmpeg
, nodejs
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  makeWrapper,
  openssl,
  mpv,
  ffmpeg,
  nodejs,
}:

rustPlatform.buildRustPackage rec {
@@ -27,19 +25,30 @@ rustPlatform.buildRustPackage rec {

  OPENSSL_NO_VENDOR = true;

  nativeBuildInputs = [ pkg-config makeWrapper ];
  buildInputs = [ openssl ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [ configd Security ];
  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 ];
  };
}
+0 −5
Original line number Diff line number Diff line
@@ -23967,11 +23967,6 @@ with pkgs;
  dmarc-metrics-exporter = callPackage ../servers/monitoring/prometheus/dmarc-metrics-exporter { };
  dmlive = callPackage ../applications/video/dmlive {
    inherit (darwin) configd;
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  do-agent = callPackage ../servers/monitoring/do-agent { };
  dodgy = with python3Packages; toPythonApplication dodgy;