From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OOc1GalUFWddygAAe85BDQ:P1 (envelope-from ) for ; Sun, 20 Oct 2024 19:06:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OOc1GalUFWddygAAe85BDQ (envelope-from ) for ; Sun, 20 Oct 2024 21:06:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; none 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 5231E64E8D for ; Sun, 20 Oct 2024 21:06:16 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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 From: Luca Matei Pintilie via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-Migadu-Queue-Id: 5231E64E8D X-Migadu-Scanner: mx12.migadu.com X-TUID: zeEX21B0hkRa 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") -- 2.47.0