tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / xi / xiu / package.nix
blob7d9433cc4221fd6f8a517a9c88d8a8a722a7dc50
2   lib,
3   cmake,
4   darwin,
5   fetchFromGitHub,
6   libopus,
7   openssl,
8   pkg-config,
9   rustPlatform,
10   stdenv,
13 rustPlatform.buildRustPackage rec {
14   pname = "xiu";
15   version = "0.13.0";
17   src = fetchFromGitHub {
18     owner = "harlanc";
19     repo = "xiu";
20     rev = "v${version}";
21     hash = "sha256-EjyvCwqcPkOe69YnDiAExtBNPhsqqGa95ao+bn6wcyA=";
22   };
24   useFetchCargoVendor = true;
25   cargoHash = "sha256-IEIZM27zQZrq63ZsCVAeOl2exuFR5tUG3Gwipjg4+oo=";
27   nativeBuildInputs = [
28     cmake
29     pkg-config
30   ];
32   buildInputs =
33     [
34       libopus
35     ]
36     ++ lib.optionals stdenv.hostPlatform.isLinux [
37       openssl
38     ]
39     ++ lib.optionals stdenv.hostPlatform.isDarwin [
40       darwin.apple_sdk.frameworks.SystemConfiguration
41     ];
43   OPENSSL_NO_VENDOR = 1;
45   meta = with lib; {
46     description = "Simple, high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS";
47     homepage = "https://github.com/harlanc/xiu";
48     changelog = "https://github.com/harlanc/xiu/releases/tag/v${version}";
49     license = licenses.mit;
50     maintainers = with maintainers; [ cafkafk ];
51     mainProgram = "xiu";
52   };