From cbcfefb2fe2f1f1244162b7e2999510e1a7e6eb9 Mon Sep 17 00:00:00 2001 From: Rishi Desai Date: Mon, 16 Sep 2024 22:02:12 -0500 Subject: [PATCH] moq-relay: init at v0.6.2 --- pkgs/by-name/mo/moq-relay/package.nix | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/mo/moq-relay/package.nix diff --git a/pkgs/by-name/mo/moq-relay/package.nix b/pkgs/by-name/mo/moq-relay/package.nix new file mode 100644 index 0000000000000..c065b6ea23015 --- /dev/null +++ b/pkgs/by-name/mo/moq-relay/package.nix @@ -0,0 +1,35 @@ +{ + lib, + stdenv, + fetchFromGitHub, + libressl, + pkg-config, + rustPlatform, +}: + +rustPlatform.buildRustPackage rec { + pname = "moq-relay"; + version = "0.6.2"; + + src = fetchFromGitHub { + owner = "kixelated"; + repo = "moq-rs"; + rev = "moq-relay-v${version}"; + hash = "sha256-/2+2785FGXErG0uNVuReaf/GCFv2gypMOnrAXrA4qvs="; + }; + + cargoHash = "sha256-ih1UXbTHQA3wjkmajT1rHN1BUlOE/nkD+EUay1R3twE="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ libressl ]; + + meta = { + description = "Media Over QUIC relay server"; + mainProgram = "moq-relay"; + homepage = "https://quic.video/"; + license = lib.licenses.asl20; + changelog = "https://github.com/kixelated/moq-rs/releases/tag/moq-relay-v${version}"; + maintainers = [ lib.maintainers.therishidesai ]; + }; +}