about summary refs log tree commit diff
path: root/pkgs/servers/webmetro/default.nix
blob: 11cbfa5adbf21e4549b3f8bf73bb741517aaa1ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, fetchFromGitHub, rustPlatform }:

rustPlatform.buildRustPackage rec {
  pname = "webmetro";
  version = "unstable-20180426";

  src = fetchFromGitHub {
    owner = "Tangent128";
    repo = pname;
    rev = "4f6cc00fe647bd311d00a8a4cb53ab08f20a04f9";
    sha256 = "1n2c7ygs8qsd5zgii6fqqcwg427bsij082bg4ijnzkq5630dx651";
  };

  cargoSha256 = "1n4498byy2m2f928hamfn959abrrn693wcc323ifqqrvnbkckdz8";

  meta = with lib; {
    description = "Simple relay server for broadcasting a WebM stream";
    longDescription = ''
    Webmetro is a simple relay server for broadcasting a WebM stream
    from one uploader to many downloaders, via HTTP.
    The initialization segment is remembered, so that viewers can join
    mid-stream.  Cluster timestamps are rewritten to be monotonic, so multiple
    (compatibly-encoded) webm files can be chained together without
    clients needing to reconnect.
    '';
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ leenaars ];
    mainProgram = "webmetro";
  };
}