From patchwork Sat May 4 11:35:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 64033 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 F0BD227BBED; Sat, 4 May 2024 12:39:25 +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_INVALID, DKIM_SIGNED,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 43B7427BBE2 for ; Sat, 4 May 2024 12:39:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3Dj3-0004JA-6L; Sat, 04 May 2024 07:38:45 -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 1s3Dj1-0004Bi-4e for guix-patches@gnu.org; Sat, 04 May 2024 07:38:43 -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 1s3Dj0-0006Zf-PB for guix-patches@gnu.org; Sat, 04 May 2024 07:38:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3DjN-0004b0-MT; Sat, 04 May 2024 07:39:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69257] [PATCH rust-team v3 49/75] gnu: Add rust-gstreamer-0.21. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Sat, 04 May 2024 11:39:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69257@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 69257-submit@debbugs.gnu.org id=B69257.171482270017501 (code B ref 69257); Sat, 04 May 2024 11:39:05 +0000 Received: (at 69257) by debbugs.gnu.org; 4 May 2024 11:38:20 +0000 Received: from localhost ([127.0.0.1]:53079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3Did-0004Y7-KM for submit@debbugs.gnu.org; Sat, 04 May 2024 07:38:20 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:50345 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3DiB-0004N3-23 for 69257@debbugs.gnu.org; Sat, 04 May 2024 07:37:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1714822639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1UjAaXbfPQ4IcTRB5yyquk/TJNqvYJPulgJwDfyVk5M=; b=U/H5c3YQEDFLX/Zb11wwuuhgpV2CT5gUpZA80m6U8jY4G+ATLLFJ51wlMOnHnCOJHUqhNc hHjFeSjC5FsnV1BivjIAp+zhUWsVbhbxPsES8XLpevndx9d5jUoSxvvkpDTrfV3hLia5kW dBrDd1LhyXP2CIvHdMazdcW/MfNn1kRWvb6UyQb7fvsdQACp6tPzbjKy3IHNUJ9jb0V+UK 6+viUEDWHX7iTFFtigJkIkgkePOqLI4MFZLI84nrcN36AyuTjVubDN/x5S8OJnU40Qb+5A myJCcLRN4RtWHaU+imuBAGTDjXAa9mJe59o/m+8DU0gslopAVWHr8AeNoaq6yg== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 9cf7c69d (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <69257@debbugs.gnu.org>; Sat, 4 May 2024 11:37:19 +0000 (UTC) Date: Sat, 4 May 2024 13:35:21 +0200 Message-ID: <4b765c3248869147fff82d2a91b4480c7417fabc.1714820130.git.herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm 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/crates-gtk.scm (rust-gstreamer-0.21): Add variable. (rust-gstreamer-0.18): Inherit from rust-gstreamer-0.21. Change-Id: Ic42818a07c31e62f25750909e23c43ec8338a7f4 --- gnu/packages/crates-gtk.scm | 94 +++++++++++++++++++++++++++---------- 1 file changed, 68 insertions(+), 26 deletions(-) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 443f48f762..75f332a9f4 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -2244,8 +2244,56 @@ (define-public rust-gsk4-sys-0.7 (description "This package provides FFI bindings of GSK 4.") (license license:expat))) +(define-public rust-gstreamer-0.21 + (package + (name "rust-gstreamer") + (version "0.21.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "gstreamer" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0mchpvvll5i4ck8zr7aarrz6p975n0dcyy92wksg8ycf9hzp15fy")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + (list "--release" "--" + "--skip=typefind::tests::test_typefind_call_function") + #:cargo-development-inputs + (("rust-futures-executor" ,rust-futures-executor-0.3) + ("rust-gir-format-check" ,rust-gir-format-check-0.1) + ("rust-ron" ,rust-ron-0.8) + ("rust-serde-json" ,rust-serde-json-1)) + #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-futures-channel" ,rust-futures-channel-0.3) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-glib" ,rust-glib-0.18) + ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.21) + ("rust-itertools" ,rust-itertools-0.12) + ("rust-libc" ,rust-libc-0.2) + ("rust-muldiv" ,rust-muldiv-1) + ("rust-num-integer" ,rust-num-integer-0.1) + ("rust-num-rational" ,rust-num-rational-0.4) + ("rust-option-operations" ,rust-option-operations-0.5) + ("rust-paste" ,rust-paste-1) + ("rust-pin-project-lite" ,rust-pin-project-lite-0.2) + ("rust-pretty-hex" ,rust-pretty-hex-0.4) + ("rust-serde" ,rust-serde-1) + ("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-thiserror" ,rust-thiserror-1)))) + (native-inputs (list pkg-config)) + (inputs (list glib gstreamer)) + (home-page "https://gstreamer.freedesktop.org") + (synopsis "Rust bindings for GStreamer") + (description "This package provides Rust bindings for GStreamer.") + (license (list license:expat license:asl2.0)))) + (define-public rust-gstreamer-0.18 (package + (inherit rust-gstreamer-0.21) (name "rust-gstreamer") (version "0.18.8") (source (origin @@ -2255,38 +2303,32 @@ (define-public rust-gstreamer-0.18 (sha256 (base32 "0mjlnw9917j3wwij8225bjp54k7408lxqjjnh6r6wksyryx66qyn")))) - (build-system cargo-build-system) (arguments (list #:tests? #f ; https://github.com/gtk-rs/gtk3-rs/issues/768 - #:cargo-inputs `(("rust-bitflags" ,rust-bitflags-1) - ("rust-cfg-if" ,rust-cfg-if-1) - ("rust-futures-channel" ,rust-futures-channel-0.3) - ("rust-futures-core" ,rust-futures-core-0.3) - ("rust-futures-util" ,rust-futures-util-0.3) - ("rust-glib" ,rust-glib-0.15) - ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.18) - ("rust-libc" ,rust-libc-0.2) - ("rust-muldiv" ,rust-muldiv-1) - ("rust-num-integer" ,rust-num-integer-0.1) - ("rust-num-rational" ,rust-num-rational-0.4) - ("rust-once-cell" ,rust-once-cell-1) - ("rust-option-operations" ,rust-option-operations-0.4) - ("rust-paste" ,rust-paste-1) - ("rust-pretty-hex" ,rust-pretty-hex-0.3) - ("rust-serde" ,rust-serde-1) - ("rust-serde-bytes" ,rust-serde-bytes-0.11) - ("rust-thiserror" ,rust-thiserror-1)) + #:cargo-inputs + `(("rust-bitflags" ,rust-bitflags-1) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-futures-channel" ,rust-futures-channel-0.3) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-glib" ,rust-glib-0.15) + ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.18) + ("rust-libc" ,rust-libc-0.2) + ("rust-muldiv" ,rust-muldiv-1) + ("rust-num-integer" ,rust-num-integer-0.1) + ("rust-num-rational" ,rust-num-rational-0.4) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-option-operations" ,rust-option-operations-0.4) + ("rust-paste" ,rust-paste-1) + ("rust-pretty-hex" ,rust-pretty-hex-0.3) + ("rust-serde" ,rust-serde-1) + ("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-thiserror" ,rust-thiserror-1)) #:cargo-development-inputs `(("rust-futures-executor" ,rust-futures-executor-0.3) ("rust-gir-format-check" ,rust-gir-format-check-0.1) ("rust-ron" ,rust-ron-0.7) - ("rust-serde-json" ,rust-serde-json-1)))) - (native-inputs (list pkg-config)) - (inputs (list glib gstreamer)) - (home-page "https://gstreamer.freedesktop.org") - (synopsis "Rust bindings for GStreamer") - (description "Rust bindings for GStreamer.") - (license (list license:expat license:asl2.0)))) + ("rust-serde-json" ,rust-serde-json-1)))))) (define-public rust-gstreamer-app-0.18 (package