4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
30 lines
1008 B
Nix
30 lines
1008 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "webmetro";
|
|
version = "unstable-20180426";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tangent128";
|
|
repo = pname;
|
|
rev = "4f6cc00fe647bd311d00a8a4cb53ab08f20a04f9";
|
|
sha256 = "1n2c7ygs8qsd5zgii6fqqcwg427bsij082bg4ijnzkq5630dx651";
|
|
};
|
|
|
|
cargoSha256 = "0xifc3jwj0c6ynx0gzm5zlnfcq023fjpjmdg9x0vs1fh3b42pdsy";
|
|
|
|
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 ];
|
|
};
|
|
}
|