From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2Eo0Fx2MImeLWgAAe85BDQ:P1 (envelope-from ) for ; Wed, 30 Oct 2024 19:42:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2Eo0Fx2MImeLWgAAe85BDQ (envelope-from ) for ; Wed, 30 Oct 2024 20:42:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=u2FG97D1; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b="kaae/Onu"; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730317341; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7l1SBz/RHKrL24QgNFBnwC4fEG6o+EM8g18fs8rEe3M=; b=sOZNB7DOOWgkCf8rjz9p30kCBfFva53j4ljY15oVtgJB7lQOy47GaR4xeCmWVYruZ63M96 3yO3PdJTvJ9KoV4uwSved5MkN7AsRUr+fPJP/11S7NHP8XhOtWqXbT2VqX8T+d0MijrgP4 ka4T/iZHeNX+ZbPI8CSlbhAv1EvFksf3XAUeyLny7Ldi9G2YqRiyvbddGclROhsRuzAMqe 2mn2/1EdhTqTgkp//riuerV/rKTHlApjmsjEPXsuD8L4pnwp1uifhftwNhsEp+vBVrk7hh 3FHCNRySPatQOmOKUV9Ful5Nm4YGh0ltQUdmjPSxClIqsTzYr9HEqzDh8UkVoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730317341; a=rsa-sha256; cv=none; b=oT0pavZpJMI6W4IlqJ7cbVpWQEORKXvLfow66zrIzj1NiVb9DaQhwIvHxh+ceWtkah5bPK 2kenaTK92MoxNOiqWlLYjEO3A4jpUV+oWXWhcu3h9/kRx9/JHg3WUYkXZAHXWGCAmT4uYV XJBkba596Cq+SVDTxxx7nAv4SKeT388ljZeIp3eWMKmEEMcU75s/U7P8Wb7F3+Wvo47x9O j4pWJdZeQ2gDMulbwbTL4glYrDbKRqywaQqvmN1xmhHXk077RggDcfaFMi3U0yI+MbK/8Z ZOGoBuWlGoGeB4xk1TEkTpLhNkCAjZoLkhks05fMqmto+8kT5dPkFDzFrPERzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=u2FG97D1; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b="kaae/Onu"; 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"; dmarc=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 D774A5689A for ; Wed, 30 Oct 2024 20:42:20 +0100 (CET) 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 Content-Transfer-Encoding: 8bit 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+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: -3.34 X-Spam-Score: -3.34 X-Migadu-Queue-Id: D774A5689A X-Migadu-Scanner: mx13.migadu.com X-TUID: ta+FJCF9XLSx * gnu/packages/crates-io.scm (rust-speakersafetyd-1): New variable. Change-Id: I02eb6e0c23fd04cff86b67ed30e8867af07a724b --- gnu/packages/crates-io.scm | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) 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") base-commit: d6f775c30c6f47e174f6110d1089edc6315600e4 -- 2.46.0