2024-02-13 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, cmake
|
|
|
|
, darwin
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libopus
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "xiu";
|
2024-08-11 03:15:22 +00:00
|
|
|
version = "0.13.0";
|
2024-02-13 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "harlanc";
|
|
|
|
repo = "xiu";
|
|
|
|
rev = "v${version}";
|
2024-08-11 03:15:22 +00:00
|
|
|
hash = "sha256-EjyvCwqcPkOe69YnDiAExtBNPhsqqGa95ao+bn6wcyA=";
|
2024-02-13 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-08-11 03:15:22 +00:00
|
|
|
cargoHash = "sha256-pW1VvnK7WDRvSVFOMUibtsPn+dhcFp64EpTW5beaJ+s=";
|
2024-02-13 04:20:00 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libopus
|
2024-09-24 15:50:49 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
2024-02-13 04:20:00 +00:00
|
|
|
openssl
|
2024-09-24 15:50:49 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-03-02 07:20:00 +00:00
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
2024-02-13 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple, high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS";
|
|
|
|
homepage = "https://github.com/harlanc/xiu";
|
|
|
|
changelog = "https://github.com/harlanc/xiu/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
2024-04-28 16:55:21 +00:00
|
|
|
maintainers = with maintainers; [ cafkafk ];
|
2024-02-13 04:20:00 +00:00
|
|
|
mainProgram = "xiu";
|
|
|
|
};
|
|
|
|
}
|