dmlive: use new darwin sdk pattern, move to by-name (#354013)
This commit is contained in:
commit
0b301b61e9
@ -1,15 +1,13 @@
|
|||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, rustPlatform
|
rustPlatform,
|
||||||
, fetchFromGitHub
|
fetchFromGitHub,
|
||||||
, pkg-config
|
pkg-config,
|
||||||
, makeWrapper
|
makeWrapper,
|
||||||
, openssl
|
openssl,
|
||||||
, configd
|
mpv,
|
||||||
, Security
|
ffmpeg,
|
||||||
, mpv
|
nodejs,
|
||||||
, ffmpeg
|
|
||||||
, nodejs
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -27,19 +25,30 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
OPENSSL_NO_VENDOR = true;
|
OPENSSL_NO_VENDOR = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ openssl ]
|
pkg-config
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ configd Security ];
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
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";
|
description = "Tool to play and record videos or live streams with danmaku";
|
||||||
homepage = "https://github.com/THMonster/dmlive";
|
homepage = "https://github.com/THMonster/dmlive";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
mainProgram = "dmlive";
|
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 { };
|
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 { };
|
do-agent = callPackage ../servers/monitoring/do-agent { };
|
||||||
|
|
||||||
dodgy = with python3Packages; toPythonApplication dodgy;
|
dodgy = with python3Packages; toPythonApplication dodgy;
|
||||||
|
Loading…
Reference in New Issue
Block a user