From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SDHIGHq0HWP2GQAAbAwnHQ (envelope-from ) for ; Sun, 11 Sep 2022 12:12:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cCGSGHq0HWMoRAEAauVa8A (envelope-from ) for ; Sun, 11 Sep 2022 12:12:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0E9439FC3 for ; Sun, 11 Sep 2022 12:12:10 +0200 (CEST) Received: from localhost ([::1]:58360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXJwf-0005n7-8o for larch@yhetil.org; Sun, 11 Sep 2022 06:12:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXJwY-0005mr-N3 for guix-patches@gnu.org; Sun, 11 Sep 2022 06:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXJwY-0007XY-Cq for guix-patches@gnu.org; Sun, 11 Sep 2022 06:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXJwY-0007R0-7v for guix-patches@gnu.org; Sun, 11 Sep 2022 06:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57675] [PATCH v3 1/7] gnu: webrtc-for-telegram-desktop: Simplify inputs. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Sep 2022 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57675 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57675@debbugs.gnu.org Cc: Liliana Marie Prikler Received: via spool by 57675-submit@debbugs.gnu.org id=B57675.166289110128537 (code B ref 57675); Sun, 11 Sep 2022 10:12:02 +0000 Received: (at 57675) by debbugs.gnu.org; 11 Sep 2022 10:11:41 +0000 Received: from localhost ([127.0.0.1]:40772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXJwC-0007QD-Sa for submit@debbugs.gnu.org; Sun, 11 Sep 2022 06:11:41 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:39148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXJwA-0007Py-VB for 57675@debbugs.gnu.org; Sun, 11 Sep 2022 06:11:39 -0400 Date: Sun, 11 Sep 2022 18:11:16 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1662891093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yi1RRIk4jsLhjGkg6nX4zb2F+tXlNnLxxXGvgzhxPYs=; b=wD1VnSxg0/dRYCuWEjAvicgOTGIWSXDjg6tIOymETBt3mEwz+uhwDBlb4d8aZ3KLq3i5zs YfMgRhquo3/YBmXjwH8GGVwBx8p8OvTuQrjXlvi3jgb7VWW9I82Plj/rCwS4ydZt2/Wsg8 Q1Zr2GlD+U8rmbVUAjXUGsrUtzANbPT7Afd1Pqy+c0pkoaCPRqvqx/KAMn3TTEMw6AgW40 Q2liT7367VxVJ2IHs9MHe5NFp017QoH4iVgc3FCQEL2wl/m/oOR3ivdZxGdoWl5+3tA/fz 0si7gEaqM/MXvkcsASkTCbbF3YXyqVPeDr8fU4PTRkGrghPCSPqriyK8YQ3XOg== Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662891130; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=yi1RRIk4jsLhjGkg6nX4zb2F+tXlNnLxxXGvgzhxPYs=; b=N6+k9ynZ+KWdQGCbZJeT3nxWKBFAfUBX6lKX5meMgr0Ft68K9DGZK5GQK24efQ6jrWfC/D Liuf82gLWxBTes60sv/s0a3SI30Y+5wjqUAoqPt6wS+UzepxUuko26ZexJIlDxT+OWhXSn wUx5LiuD5z3k4Y5Y962k4zkf3jFnlU1GKe+eyY/VqrAdzXyZzMtzNbxEfPh4i9k0+y28fu SzEiUVGYwHKUW64eBKe1xs9r36rKbtvriXxbUndbPg1W4taoLObwWdFSfYI710hi/AJbww C86UIFyKCW0dclVgLe6BcjBXdHm8bwRibWjgAl+IlsG3IWeVK+E4CB2oMikRDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662891130; a=rsa-sha256; cv=none; b=OsQPgApWM8G1ZI7ZWJMO8dQAZilzwfHVbJlGlS6jOCsz/yO5846ySuHugMpXnx2aYcGvAu 5w0iSpz63PjbEDQ6A7exJGVwJpYQ546JfgD/h1+mFHq9HMAqqzedCZ5N3G0gVE5haOCs5H ZUYxwcIc54tECsnzytZdCVaf43RI4wSjeteyg6rC6zxBwxBxlgtcUnhhyoTqJa5Xo9L5a2 P85A09cphKb6pYcr3jB5l1Xu5A31hOdWK5ha3l+m0HkkQL2NZ/DxwKpZ407SL2d5eZAkxz VS7bqUElwgBcJkoHxwKMk9sNS9Is/XG3gPn2ZogkZbZEzTv7sQvoktJ/6sPj3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=wD1VnSxg; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=wD1VnSxg; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0E9439FC3 X-Spam-Score: -3.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: jazcYXLqbK7J * gnu/packages/telegram.scm (webrtc-for-telegram-desktop): Simplify inputs. --- gnu/packages/telegram.scm | 84 +++++++++++---------------------------- 1 file changed, 23 insertions(+), 61 deletions(-) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 4976acbc0c..9bef94788b 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -85,11 +85,12 @@ (define-public webrtc-for-telegram-desktop (uri (git-reference (url "https://github.com/desktop-app/tg_owt.git") - (commit commit))) + (commit commit) + (recursive? #t))) (file-name (git-file-name name version)) (sha256 - (base32 "0plwdp6xgxi27hif5j7kpq425cidxyxbbga3z2f64dsninwy5p1x")) + (base32 "1ir4svv5mijpzr0rmx65088iikck83vhcdqrpf9dnk6yp4j9v4v2")) (modules '((guix build utils) (ice-9 ftw) (srfi srfi-1))) @@ -99,79 +100,40 @@ (define-public webrtc-for-telegram-desktop '( ;; Custom forks which are incompatible with the ones in Guix. "abseil-cpp" "libsrtp" "openh264" "rnnoise" ;; Not available in Guix. - "pffft" "usrsctp" + "pffft" "usrsctp" "libyuv" ;; Has cmake support files for libvpx input. "libvpx"))) (with-directory-excursion "src/third_party" (for-each delete-file-recursively (lset-difference string=? (scandir ".") - (cons* "." ".." keep)))) - #t))))) + (cons* "." ".." keep))))))))) (build-system cmake-build-system) (arguments `(#:tests? #f ; No target #:configure-flags (list "-DCMAKE_C_FLAGS=-fPIC" - "-DCMAKE_CXX_FLAGS=-fPIC") - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'copy-inputs - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((libvpx-from (assoc-ref inputs "libvpx")) - (libyuv-from (assoc-ref inputs "libyuv")) - (libvpx-to (string-append (getcwd) - "/src/third_party/libvpx/source/libvpx")) - (libyuv-to (string-append (getcwd) - "/src/third_party/libyuv"))) - (copy-recursively libvpx-from libvpx-to) - (copy-recursively libyuv-from libyuv-to)) - #t))))) + "-DCMAKE_CXX_FLAGS=-fPIC"))) (native-inputs - `(("perl" ,perl) - ("pkg-config" ,pkg-config) - ("python" ,python-wrapper) - ("yasm" ,yasm))) + (list perl pkg-config python-wrapper yasm)) (inputs - `(("alsa" ,alsa-lib) - ("ffmpeg" ,ffmpeg) - ("libjpeg" ,libjpeg-turbo) - ("glib" ,glib) - ("libvpx" - ,(origin - (method git-fetch) - (uri - (git-reference - (url "https://chromium.googlesource.com/webm/libvpx") - (commit "5b63f0f821e94f8072eb483014cfc33b05978bb9"))) - (file-name - (git-file-name "libvpx-for-webrtc-for-telegram-desktop" version)) - (sha256 - (base32 "1psvxaddihlw1k5n0anxif3qli6zyw2sa2ywn6mkb8six9myrp68")))) - ("libyuv" - ,(origin - (method git-fetch) - (uri - (git-reference - (url "https://chromium.googlesource.com/libyuv/libyuv") - (commit "ad890067f661dc747a975bc55ba3767fe30d4452"))) - (file-name - (git-file-name "libyuv-for-webrtc-for-telegram-desktop" version)) - (sha256 - (base32 "01knnk4h247rq536097n9n3s3brxlbby3nv3ppdgsqfda3k159ll")))) - ("libxcomposite" ,libxcomposite) - ("libxdamage" ,libxdamage) - ("libxrender" ,libxrender) - ("libxrandr" ,libxrandr) - ("openssl" ,openssl) - ("opus" ,opus) - ("pipewire" ,pipewire) - ("protobuf" ,protobuf) - ("pulseaudio" ,pulseaudio) - ("x11" ,libx11) - ("xext" ,libxext) - ("xtst" ,libxtst))) + (list alsa-lib + ffmpeg + libjpeg-turbo + glib + libxcomposite + libxdamage + libxrender + libxrandr + openssl + opus + pipewire + protobuf + pulseaudio + libx11 + libxext + libxtst)) (synopsis "WebRTC support for Telegram Desktop") (description "WebRTC-for-Telegram-Desktop is a custom WebRTC fork by Telegram project, for its use in telegram desktop client.") -- 2.37.3