From patchwork Sun Aug 6 16:26:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Oleg Pykhalov X-Patchwork-Id: 52583 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9B50727BBEA; Sun, 6 Aug 2023 17:28:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0821527BBE2 for ; Sun, 6 Aug 2023 17:28:14 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSgbs-0008GE-FU; Sun, 06 Aug 2023 12:28:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSgbr-0008Fm-2A for guix-patches@gnu.org; Sun, 06 Aug 2023 12:28:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSgbq-0000rT-Pe for guix-patches@gnu.org; Sun, 06 Aug 2023 12:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSgbq-0006lC-AH for guix-patches@gnu.org; Sun, 06 Aug 2023 12:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65115] [PATCH] gnu: Add obs-looking-glass. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Aug 2023 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65115 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65115@debbugs.gnu.org Cc: Oleg Pykhalov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169133927325967 (code B ref -1); Sun, 06 Aug 2023 16:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2023 16:27:53 +0000 Received: from localhost ([127.0.0.1]:59954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSgbg-0006kl-E9 for submit@debbugs.gnu.org; Sun, 06 Aug 2023 12:27:52 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSgbc-0006kT-Gf for submit@debbugs.gnu.org; Sun, 06 Aug 2023 12:27:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSgbW-0008Ej-OD for guix-patches@gnu.org; Sun, 06 Aug 2023 12:27:42 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSgbU-0000mD-OB for guix-patches@gnu.org; Sun, 06 Aug 2023 12:27:42 -0400 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b9b6c57c94so11502621fa.0 for ; Sun, 06 Aug 2023 09:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691339258; x=1691944058; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ghUhzcX3lphFUrEreqJaJv+CnqPM39STgAi9IBiXB6Y=; b=lfz+4HFcgIINPz7MZO9kwfL5IC2u+N/wYCmG1flYquiOEuRYl+LXsbU7RlZrjzmjhU 6Tdy/1jkbJfaSFCqa7347yir7ypgoulCM0wWmYVb4r84Neg9KFOaVdVhBgy6+QB18WJ5 NEWE3//W5RWSHA2aBzuef16QH4i58wYGd6dzZxaKbsxBrtjyoXg7eFkuN013oOz7NXKW QhG0SdBv4Vr65FAPv3dwz/bNImJuWzwJGJkatV6je3vH94k4LmL/NFA3nmKYPQA4G/d5 bTpniR+1lUbWyVrFSEgDIR7e7uJjHTLzXlLxQjJBXORhBggVYNW5aYmeJO6uqJY0Ffah wOdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691339258; x=1691944058; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ghUhzcX3lphFUrEreqJaJv+CnqPM39STgAi9IBiXB6Y=; b=lrFC06bLN325CBhrL8M/LfJNIMIF7kmc1F4ScsQ9/B2aZEQO03kLWwh8Fo8bWb5ZzE 8rGBlE0nBlhVLtQb2PGd0MtXR3ukvph65kGEysgcvhMnKjVZd5cXGzVcwUIJTL5FcoNs gEerczcjVJeOREn3CGWAdV+D6m+TPB5OQyXgJfuvQIn9nZ7SILlTUQ8Ky0+reWKPyw9n i2rklDQEJhb0dnqyVQZ9z5kg8bA46ysIEaasw21FsDv8ba+v0SWQ+t7B6ODAL/MnYGUz +ubaxm52JQmCBQldh/BySmGKQt02RashdMFG7i2BbKru+D14xEPZENg2HLLGwavj9/pF 1S5w== X-Gm-Message-State: ABy/qLaWPPqSjwn956jKud63LzPSueSnzqY/YTFAYuuu5e12YT3Tne51 u9xs1SZxei30UjWxfC+X9qiFfkHsyTE= X-Google-Smtp-Source: APBJJlGpHWIwWAhJPw68Gb/4oDOWcvnz9NgOJxbq7fkU5VBUudpU0IZq0AMIEG0VCZd1U2H3AVC7uA== X-Received: by 2002:a05:651c:508:b0:2b7:32d1:6c7d with SMTP id o8-20020a05651c050800b002b732d16c7dmr16702739ljp.2.1691339257972; Sun, 06 Aug 2023 09:27:37 -0700 (PDT) Received: from guixsd.wugi.info ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id y3-20020a2e3203000000b002b6e099c481sm1422945ljy.51.2023.08.06.09.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Aug 2023 09:27:37 -0700 (PDT) From: Oleg Pykhalov Date: Sun, 6 Aug 2023 19:26:24 +0300 Message-Id: <7524ba2269edf09344a68dec1e08d3c2983fcb40.1691339184.git.go.wigust@gmail.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (obs-looking-glass): New variable. --- gnu/packages/video.scm | 81 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) base-commit: c4b9f726e3a1889b92a4b14a2af1c25f10798469 diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 801c2602e4..7df68e8f53 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -34,7 +34,7 @@ ;;; Copyright © 2019 Timo Eisenmann ;;; Copyright © 2019 Arne Babenhauserheide ;;; Copyright © 2019 Riku Viitanen -;;; Copyright © 2020, 2021 Oleg Pykhalov +;;; Copyright © 2020, 2021, 2023 Oleg Pykhalov ;;; Copyright © 2020 Josh Holland ;;; Copyright © 2020, 2021 Brice Waegeneire ;;; Copyright © 2020 Vincent Legoll @@ -138,6 +138,7 @@ (define-module (gnu packages video) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) #:use-module (gnu packages fribidi) + #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) #:use-module (gnu packages gl) @@ -164,7 +165,9 @@ (define-module (gnu packages video) #:use-module (gnu packages maths) #:use-module (gnu packages music) #:use-module (gnu packages mp3) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) + #:use-module (gnu packages nettle) #:use-module (gnu packages networking) #:use-module (gnu packages ocr) #:use-module (gnu packages pcre) @@ -193,6 +196,7 @@ (define-module (gnu packages video) #:use-module (gnu packages sdl) #:use-module (gnu packages serialization) #:use-module (gnu packages shells) + #:use-module (gnu packages spice) #:use-module (gnu packages sqlite) #:use-module (gnu packages ssh) #:use-module (gnu packages swig) @@ -3524,6 +3528,81 @@ (define-public obs (home-page "https://obsproject.com") (license license:gpl2+))) +(define-public obs-looking-glass + (package + (name "obs-looking-glass") + (version "B5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gnif/LookingGlass") + (commit version) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "09mn544x5hg1z31l92ksk7fi7yj9r8xdk0dcl9fk56ivcr452ylm")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f ; no test target + #:make-flags #~(list "CC=gcc") + #:configure-flags + #~(list "-DGLOBAL_INSTALLATION=ON" + "-DUSE_CMAKE_LIBDIR=ON" + (string-append "-DOBS_PLUGIN_PREFIX=" + #$output "/lib/obs-plugins")) + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'chdir-to-source + (lambda* (#:key outputs #:allow-other-keys) + (chdir "obs") + #t)) + (add-after 'chdir-to-source 'substitute-output + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "CMakeLists.txt" + (("\\$\\{OBS_PLUGIN_PREFIX\\}/\\$\\{CMAKE_PROJECT_NAME\\}/bin/\\$\\{OBS_PLUGIN_DIR\\}") + (string-append (string-append #$output "/lib/obs-plugins")))) + #t))))) + (native-inputs (list libconfig nettle pkg-config)) + (inputs + (list bash-minimal + fontconfig + freetype + glu + gmp + libglvnd + libiberty + libx11 + libxcursor + libxfixes + libxi + libxinerama + libxkbcommon + libxpresent + libxrandr + libxscrnsaver + mesa + obs + openssl + sdl2 + sdl2-ttf + spice-protocol + wayland + wayland-protocols + `(,zlib "static"))) + (home-page "https://looking-glass.io/") + (synopsis "Looking Glass video feed to OBS as a video source") + (description "This OBS plugin allows a Looking Glass video feed to OBS as +a video source with the included OBS plugin. This provides a lower-latency +alternative to capturing the Looking Glass client window with a Screen or +Window Capture source. + +This may help improve your viewers watching experience, and allows you to use +your host privately.") + (license license:gpl2+))) + (define-public obs-websocket ;; Functionality was merged into OBS. (deprecated-package "obs-websocket" obs))