2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, cmake
|
|
|
|
, darwin
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libopus
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "xiu";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.12.7";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "harlanc";
|
|
|
|
repo = "xiu";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-tFArcI7NcIopM5uPshaOU3ExJW5URc5Mf2V0ZwwgwKo=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-OBL1uDVogcU6saEz2d2sWJTwXM2KE/YfhsNZtH0Cnk8=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libopus
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2024-04-21 15:54:59 +00:00
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple, high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/harlanc/xiu";
|
|
|
|
changelog = "https://github.com/harlanc/xiu/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ cafkafk ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "xiu";
|
|
|
|
};
|
|
|
|
}
|