From e4f41d5598f860bd93de3dc4b53547c4c0db1be2 Mon Sep 17 00:00:00 2001 From: Chuang Zhu Date: Tue, 22 Oct 2024 19:44:47 +0800 Subject: [PATCH 1/2] gtuber: init at 0-unstable-2024-10-11 --- pkgs/by-name/gt/gtuber/package.nix | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 pkgs/by-name/gt/gtuber/package.nix diff --git a/pkgs/by-name/gt/gtuber/package.nix b/pkgs/by-name/gt/gtuber/package.nix new file mode 100644 index 000000000000..71e504cb8e5f --- /dev/null +++ b/pkgs/by-name/gt/gtuber/package.nix @@ -0,0 +1,56 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, + gobject-introspection, + vala, + glib, + libsoup_3, + json-glib, + libxml2, + gst_all_1, + unstableGitUpdater, +}: + +stdenv.mkDerivation { + pname = "gtuber"; + version = "0-unstable-2024-10-11"; + + src = fetchFromGitHub { + owner = "Rafostar"; + repo = "gtuber"; + rev = "468bf02a8adcf69b1bd6dd7b5dbcdcc0bfdb6922"; + hash = "sha256-pEiHqcxkrxZRD9xW/R9DNDdp5foxaHK2SAuzmPNegaY="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + gobject-introspection # For g-ir-scanner + vala # For vapigen + ]; + buildInputs = [ + glib + libsoup_3 + json-glib + libxml2 + gst_all_1.gstreamer + gst_all_1.gst-plugins-base + ]; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + + meta = { + description = "GStreamer plugin for streaming videos from websites"; + homepage = "https://rafostar.github.io/gtuber/"; + license = lib.licenses.lgpl21Plus; + maintainers = with lib.maintainers; [ chuangzhu ]; + platforms = lib.platforms.unix; + }; +} From b2e53587fb76d5ca18291a91c007b9f1402cd79c Mon Sep 17 00:00:00 2001 From: Chuang Zhu Date: Tue, 22 Oct 2024 19:47:46 +0800 Subject: [PATCH 2/2] clapper: add gtuber support --- pkgs/applications/video/clapper/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/video/clapper/default.nix b/pkgs/applications/video/clapper/default.nix index dfdcacc3b318..d33f1d276081 100644 --- a/pkgs/applications/video/clapper/default.nix +++ b/pkgs/applications/video/clapper/default.nix @@ -17,6 +17,8 @@ , vala , cmake , libmicrodns +, gtuber +, glib-networking }: stdenv.mkDerivation (finalAttrs: { @@ -49,6 +51,8 @@ stdenv.mkDerivation (finalAttrs: { gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly + gtuber + glib-networking # for TLS support gtk4 libGL libadwaita