nixpkgs/pkgs/by-name/xi/xiu/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
Nix
Raw Normal View History

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
] ++ lib.optionals stdenv.hostPlatform.isLinux [
2024-02-13 04:20:00 +00:00
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
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;
maintainers = with maintainers; [ cafkafk ];
2024-02-13 04:20:00 +00:00
mainProgram = "xiu";
};
}