From e4f41d5598f860bd93de3dc4b53547c4c0db1be2 Mon Sep 17 00:00:00 2001 From: Chuang Zhu Date: Tue, 22 Oct 2024 19:44:47 +0800 Subject: [PATCH] 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; + }; +}