From patchwork Wed Oct 30 19:41:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Scherer X-Patchwork-Id: 69675 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 B705627BBE9; Wed, 30 Oct 2024 19:42:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS autolearn=unavailable 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 C1DB127BBE2 for ; Wed, 30 Oct 2024 19:42:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6Ea0-0002Ua-PU; Wed, 30 Oct 2024 15:42:08 -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 1t6EZy-0002UL-J2 for guix-patches@gnu.org; Wed, 30 Oct 2024 15:42:06 -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 1t6EZu-0004K3-Qo for guix-patches@gnu.org; Wed, 30 Oct 2024 15:42:06 -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:Date:From:To:Subject; bh=7l1SBz/RHKrL24QgNFBnwC4fEG6o+EM8g18fs8rEe3M=; b=u2FG97D1uOHbGNPcQ1YdOoQtGQIAxIaGZB4FHHXjIGjzLhKmZjq1+KVt3ePF8BtDamiOUz5qcYw7MosN+bpOKJAFCLaK/lvkn8QGHbu1oFyTVLXTgLnFSRKJPj5kLc0bvDGfyShhZbOHa27+UepuPJ3DjCU+nSjKtfsuvPc3wmRj7TtDwdABFH1zMoFKduojmicAHE9PCPOKBuJNcwZmRvH83lfiTr4k8qAif8JP0JBhtgfK6Qc9H4gAkWwZhE7f/0C3YWVEMSSsJWuZQHSHqe6DojqKCBwWlfHY5eqJnhGIKH05NO4Vu4BlKncQJyzQXhFQfwtOIfO+v7vl5+UP+g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6EZu-0006Qs-Kg; Wed, 30 Oct 2024 15:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74120] [PATCH] gnu: Add rust-speakersafetyd-1. Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Wed, 30 Oct 2024 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74120 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74120@debbugs.gnu.org Cc: Roman Scherer , Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by submit@debbugs.gnu.org id=B.173031728824703 (code B ref -1); Wed, 30 Oct 2024 19:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Oct 2024 19:41:28 +0000 Received: from localhost ([127.0.0.1]:37079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6EZL-0006QL-NI for submit@debbugs.gnu.org; Wed, 30 Oct 2024 15:41:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:49596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6EZJ-0006QF-5j for submit@debbugs.gnu.org; Wed, 30 Oct 2024 15:41:26 -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 1t6EZI-0002Ok-PE for guix-patches@gnu.org; Wed, 30 Oct 2024 15:41:25 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t6EZG-0004HL-Eu for guix-patches@gnu.org; Wed, 30 Oct 2024 15:41:24 -0400 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a9a628b68a7so20513866b.2 for ; Wed, 30 Oct 2024 12:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1730317280; x=1730922080; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7l1SBz/RHKrL24QgNFBnwC4fEG6o+EM8g18fs8rEe3M=; b=kaae/Onut1asaqjK0DUBQLwSVrIhcoUzX7hiHYY0JGs3NDEu+UHDsrwtTr7xt5c8l3 hnadgy9FGHbHKT9HEQP24sHqEViHqMqc3S34NQjhNea4iQoWPsDkl219HJzB4AD1hSmu fI5Bk2p74hJFTrs79RB7ThIo/73RvAJ4Nx6rmXwxxuj/6ZiDq+kw40v/EA8fxSWdBjs9 NCBzyQbF/N63uZJqq5JqZmjR6mroIP9MLWOLtOmFAr5yp0D3+YND6lBjlpKotlaXkU/5 9vIS7aI+vi67xyvO45jWVar1vvq+FUknvktAFvQYcAVTRwNZbt9zkRiw9ZLVf8WDwlTa osTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730317280; x=1730922080; 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=7l1SBz/RHKrL24QgNFBnwC4fEG6o+EM8g18fs8rEe3M=; b=L9x199by2dX6Y/kacIdhbK8pRjzbXgD/jEMUneLEzLbBYbs1svrypNT15vveY/oBH5 unwaZ5IXtKg73iN8GDoTPfuirPHpyRUWM2LH6zLS3DsCzA4FeW8V5fjeSzGq1BPMdTKL 2XkdYKj+K0bmk2ab90UDpujDUAd/X9M1tRr65iJF8gdp6OHUdu1hdnmFkZ8dAfHKV12o WRpERDhqsRa93miiwGe8BtmuBYBSt9URfaw8vJiQOwigbOGFKwVbsKe/ink322n60Gux ajorH0TTHWwT+Q3nSVp2ly4McDtxE2vgcg8iCyTdIiDYxe8tU88Q6siocMYxiM4ox1K6 b0bg== X-Gm-Message-State: AOJu0YwUTECBY37cQSA/JT8UtCJnPb2oqksc1guZYW4rFgLmy70I/3Pm w0RJbPTu1ENfX9St2GypU1pedex/Z7e+bAnpeA+cu+NN85U5M4SFnNEjIcPDtzIjQT1wwGIT2kX l X-Google-Smtp-Source: AGHT+IG59YKtKvWaoqS71UF9CCQ8LCyzNAuJd3M1+WgUyAZsanXAYUWk68riaXIpN9/wCiXbk8E0nA== X-Received: by 2002:a17:907:2dab:b0:a99:482c:b2b9 with SMTP id a640c23a62f3a-a9de5f23b45mr1409246166b.29.1730317280129; Wed, 30 Oct 2024 12:41:20 -0700 (PDT) Received: from localhost.localdomain ([2a01:599:10b:dce5:8bb0:3297:d6a3:de1c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b1f029617sm592386966b.81.2024.10.30.12.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 12:41:19 -0700 (PDT) From: Roman Scherer Date: Wed, 30 Oct 2024 20:41:16 +0100 Message-ID: <730badd0c62c83b9c779ee2ad9c9ca41af34bfd9.1730317218.git.roman@burningswell.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Received-SPF: none client-ip=2a00:1450:4864:20::636; envelope-from=roman@burningswell.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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/crates-io.scm (rust-speakersafetyd-1): New variable. Change-Id: I02eb6e0c23fd04cff86b67ed30e8867af07a724b --- gnu/packages/crates-io.scm | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) base-commit: d6f775c30c6f47e174f6110d1089edc6315600e4 diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index c08ccd29fd..83b543f552 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -73271,6 +73271,61 @@ (define-public rust-sourcemap-6 (description "This package provides basic sourcemap handling for Rust.") (license license:bsd-3))) +(define-public rust-speakersafetyd-1 + (package + (name "rust-speakersafetyd") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "speakersafetyd" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1dvyj194niz5i4rldsqvjmz8j7df9w9qpvf9rwg3vsnzc2mjh0zg")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-alsa" ,rust-alsa-0.8) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-clap" ,rust-clap-4) + ("rust-clap-verbosity-flag" ,rust-clap-verbosity-flag-2) + ("rust-configparser" ,rust-configparser-3) + ("rust-json" ,rust-json-0.12) + ("rust-libc" ,rust-libc-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-signal-hook" ,rust-signal-hook-0.3) + ("rust-simple-logger" ,rust-simple-logger-1)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "src/main.rs" + (("share/speakersafetyd") "share") + (("/usr/local") (assoc-ref outputs "out"))))) + (add-after 'unpack 'remove-systemd-udev-rules + (lambda _ + (substitute* "95-speakersafetyd.rules" + ((".*SYSTEMD_WANTS.*") "")))) + (add-after 'install 'install-conf + (lambda* (#:key outputs #:allow-other-keys) + (let ((target (string-append (assoc-ref outputs "out") "/share"))) + (copy-recursively "conf" target)))) + (add-after 'install 'install-udev-rules + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (mkdir-p (string-append out "/lib/udev/rules.d")) + (copy-file "95-speakersafetyd.rules" + (string-append out + "/lib/udev/rules.d/" + "95-speakersafetyd.rules")))))))) + (inputs (list alsa-lib)) + (native-inputs (list pkg-config)) + (home-page "https://github.com/AsahiLinux/speakersafetyd/") + (synopsis "Speaker protection daemon") + (description "Speakersafetyd is a userspace daemon written in Rust that +implements an analogue of the Texas Instruments Smart Amp speaker protection +model.") + (license license:expat))) + (define-public rust-special-0.8 (package (name "rust-special")