dmlive: use new darwin sdk pattern, move to by-name (#354013)
This commit is contained in:
commit
0b301b61e9
@ -1,15 +1,13 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user