From patchwork Sun Oct 20 16:15:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Matei Pintilie X-Patchwork-Id: 69169 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 8FEB527BBEA; Sun, 20 Oct 2024 20:06:16 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS 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 54C5527BBE2 for ; Sun, 20 Oct 2024 20:06:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2bFH-000386-Iz; Sun, 20 Oct 2024 15:05:43 -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 1t2bFC-000377-Sb for guix-patches@gnu.org; Sun, 20 Oct 2024 15:05:40 -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 1t2bFC-0006oA-ED for guix-patches@gnu.org; Sun, 20 Oct 2024 15:05:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=PbAenLglgurcNjgX5nWRHkWLquJz4Hr+9i560jH0Izs=; b=Dmc0ehIHsxkLFOuDsSDPvWdRwXUHdQuPKU1qFFt1LicRJH2txvP/mck9Tctv+8cf6O3qXus6ebLsos+pKa4JNfE1AZewv8Het0n+0A8RpLGyYzOawpWDexSkmp0koxU32fCUKjEAHgWH34vbUTy+/hPk2OLwCRNjXZAolLwZX3vlq6lhFhl9cQtz4HeMtgaoeLA81khUe9LIsN9cMdhbl5no6KxyR1KkPMbgkSEci1hRPwL6bee7yPpNSn5z9pPFep9G+NsQPQcWZ1FMQHLY7KkUU6X/hTOAVJW1mbKaLE05rzfDLbFTg5wTZnJWINbzO0gI3ft4YVLnEOSiKn1ncw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2bFb-0007uW-Ra for guix-patches@gnu.org; Sun, 20 Oct 2024 15:06:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73884] [PATCH v1 18/19] gnu: Add rust-battery-0.7 Resent-From: Luca Matei Pintilie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Oct 2024 19:06:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73884 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73884@debbugs.gnu.org Cc: Luca Matei Pintilie Received: via spool by 73884-submit@debbugs.gnu.org id=B73884.172945112929986 (code B ref 73884); Sun, 20 Oct 2024 19:06:03 +0000 Received: (at 73884) by debbugs.gnu.org; 20 Oct 2024 19:05:29 +0000 Received: from localhost ([127.0.0.1]:48515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2bF2-0007nU-Uu for submit@debbugs.gnu.org; Sun, 20 Oct 2024 15:05:29 -0400 Received: from out-170.mta1.migadu.com ([95.215.58.170]:29302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2Yba-0008Ei-KB for 73884@debbugs.gnu.org; Sun, 20 Oct 2024 12:16:39 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucamatei.com; s=key1; t=1729440963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PbAenLglgurcNjgX5nWRHkWLquJz4Hr+9i560jH0Izs=; b=uzDtdGnBy4Rq+KgLMKzch0NlZH66024GvNYDawj1grivgeb01l3NBIVAZjW0KZc+aufcRN 4rooHzOju3I9Zh/74cnuHQD78Ozr4GHahNVbXryHaW5pcIgNRPlPylajoJQyFWHZeC0IxZ ZQUin6Xn7MoRI2hnf1FHXC+gEqb4RIAGfUdQxe7FLDDEDH/yM8f/QLR8oaW7IOfQ5dvwh6 5t56I67YkSvTrvi8ihQO9iNiqJUF4FSGTV3imKY+bxHAVwSUNDYn7lOP7xWbnTfx7jQHSm AmEZTVFzpZYlebyRlp5npPSwFydwf5cTK4tW3NMlM8X5G0TgkbihpwW4NRm0ng== Date: Sun, 20 Oct 2024 18:15:55 +0200 Message-ID: <20241020161556.25798-3-luca@lucamatei.com> In-Reply-To: <20241020161556.25798-1-luca@lucamatei.com> References: <20241020161556.25798-1-luca@lucamatei.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Mailman-Approved-At: Sun, 20 Oct 2024 15:05:26 -0400 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: Luca Matei Pintilie X-ACL-Warn: , Luca Matei Pintilie via Guix-patches X-Patchwork-Original-From: Luca Matei Pintilie via Guix-patches via From: Luca Matei Pintilie 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 Change-Id: I263d424b3f24eefa4910e95d81693d8af37bec1d --- gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index a7abe1eb3b..e946cdab51 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -7222,6 +7222,38 @@ (define-public rust-bat-0.18 (inputs (list libgit2 zlib)))) +(define-public rust-battery-0.7 + (package + (name "rust-battery") + (version "0.7.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "battery" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1r1641dyks76p39i1iihswhc6iz5z51pihmpxniy1h1pi4k29dml")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ;/sys/class/power_supply cannot be found + #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-core-foundation" ,rust-core-foundation-0.7) + ("rust-lazycell" ,rust-lazycell-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-libc" ,rust-libc-0.2) + ("rust-mach" ,rust-mach-0.3) + ("rust-nix" ,rust-nix-0.19) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-uom" ,rust-uom-0.30) + ("rust-winapi" ,rust-winapi-0.3)) + #:cargo-development-inputs (("rust-approx" ,rust-approx-0.3) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/svartalf/rust-battery") + (synopsis "Cross-platform information about the notebook batteries") + (description + "This package provides Cross-platform information about the notebook batteries.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-beef-0.5 (package (name "rust-beef")