From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qE6xJQejK2ecXwAA62LTzQ:P1 (envelope-from ) for ; Wed, 06 Nov 2024 17:10:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qE6xJQejK2ecXwAA62LTzQ (envelope-from ) for ; Wed, 06 Nov 2024 18:10:31 +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=h+C2Pb4H; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b=oT8+HZuV; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730913031; a=rsa-sha256; cv=none; b=dRcuSHQm8zk8gRSV7jlAeM7s1qI0nuEfBnLHwqhou3rWuww00skNvR0PmFwOCclQYPA7zn q6Ay8YiNKVrdpQtb/dpDynxzdEcLgLDBzc56tQVXTvkpVQxkmeOe9eIw0xyHDFQGzeodf0 Z4RMCjt0UHADD1enyPIPd+V/e2gylxJC9qLatPq5fZVefJpbkAi98zMfFvryCdiNFIHg6B 1WwOqNR6fsCyKVYwtt9f/l4jk0vql/JpLRrwikQqujMM7BtLoU3GGNSmMzhVDLKXvZ+Ut+ qPclsspKwfWwKDkLeZMu1omOMI1rTgFPLRW6n+fvUXIJQqWRkqC/t6BiQGrXdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=h+C2Pb4H; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b=oT8+HZuV; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730913031; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cDCwG4QsIHbVM6mryUwTMlrmi7LnDGrjdVUzkspnojA=; b=jfAdbOzZh5w83egwOosIGlbFaTSMSlvzVgpObiASellll43JtYf2CnQSm66aFCebA0hp6Y vDfQyEknQBzjN4jhOehBj51iUrF2IHkol+mCHJqhn0cl2KnDwIN/B1Tho8HNLzoRyTsMGz HTn+DJfscEcvi7rHmaMSAQDk4i02cc9ni0BmEx51swhoWU8TfhTIubEGdaZr+N9NAkO7mK 0nE+Z0Ts3K1LGj/jeg1ij6Hpn/HgdTXFewg6T858ieC/jY+hRMEmOiJ8iunCaucxk3s6pS McQqHf6HBKb3wxaJo0NfXusXUgrVs404DTJMetseB1ReZNUHxeEF7OX9AIiouQ== 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 6A7F81A7BD for ; Wed, 06 Nov 2024 18:10:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8jXp-0005K5-9o; Wed, 06 Nov 2024 12:10:14 -0500 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 1t8jXf-0005CR-6X for guix-patches@gnu.org; Wed, 06 Nov 2024 12:10:03 -0500 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 1t8jXe-0004c3-Fn for guix-patches@gnu.org; Wed, 06 Nov 2024 12:10:02 -0500 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:In-Reply-To:References:Subject; bh=cDCwG4QsIHbVM6mryUwTMlrmi7LnDGrjdVUzkspnojA=; b=h+C2Pb4HPV2SgGCnVSw5EFLvvPgfLS9g0lYYy4rCqntQXPzXBxrDzx6YA/Lk9rQbG5J95xMYIm/cf9TZzSyMwiG8OCymUSOsieEHPGUbBqdcQQRi6bcc3ClN0dnIrltq4whN4PIV1Ks7RCUA9o1oUXZ4lJHU2b+z2heG70euZYAhnyUpjnFjf4NaZqWL8QuCdMncXscP4HFg6V/BTCtAddfOJJGA5UUAUZmhVouRcjxC3PxZ8WbGJsQ4U1Otx6jb5MrMZHrlqjZYqBSUlwefv+/Do8wRGIO+tXL5ICRzyPPXZCpTUGxEtyWXRRcHSHRO6QQ8tV8CzDfNuAfvO/HMHg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8jXd-0001xy-Rr; Wed, 06 Nov 2024 12:10:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74120] [PATCH v2] gnu: Add rust-speakersafetyd-1. References: <730badd0c62c83b9c779ee2ad9c9ca41af34bfd9.1730317218.git.roman@burningswell.com> In-Reply-To: <730badd0c62c83b9c779ee2ad9c9ca41af34bfd9.1730317218.git.roman@burningswell.com> Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Wed, 06 Nov 2024 17:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74120 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: easy patch To: 74120@debbugs.gnu.org Cc: Roman Scherer , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 74120-submit@debbugs.gnu.org id=B74120.17309129927534 (code B ref 74120); Wed, 06 Nov 2024 17:10:01 +0000 Received: (at 74120) by debbugs.gnu.org; 6 Nov 2024 17:09:52 +0000 Received: from localhost ([127.0.0.1]:45304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8jXT-0001xR-FV for submit@debbugs.gnu.org; Wed, 06 Nov 2024 12:09:51 -0500 Received: from mail-ej1-f47.google.com ([209.85.218.47]:46498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8jXR-0001xJ-Si for 74120@debbugs.gnu.org; Wed, 06 Nov 2024 12:09:50 -0500 Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a9e44654ae3so921237866b.1 for <74120@debbugs.gnu.org>; Wed, 06 Nov 2024 09:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1730912928; x=1731517728; darn=debbugs.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=cDCwG4QsIHbVM6mryUwTMlrmi7LnDGrjdVUzkspnojA=; b=oT8+HZuVPrV419S045rrMRVTjup69Y8HpTRXE9KGi0m8Z0RHM2jKkeRr3xFdxmsEEd oNhgAjSOKdfBLIhHFznSR1ey++zcMSQ7zOM10rRNeWcGZMLF0263fZ3vBYkwoUp2Z7HV xE6A8HJzu6+Ffg8k0uqm65i5amXCl3WN6Co5+V43xOo8cUt+3kDz81oHLBwyGRjByQkl mTmeSyNFziprLUHMLINBzsjIA4Tt1+ZSB5ye4IlVKDvrNy8OiP+pPm7XYNiKmDFfeJ6V XqT57dmyL7WF36Z7M8n7kb7+yVAj2s01urjtPzaQt1+URAgWFXn8vlwbPhq7iDMkwZG4 HxrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730912928; x=1731517728; 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=cDCwG4QsIHbVM6mryUwTMlrmi7LnDGrjdVUzkspnojA=; b=oKhtr/KYc0yhdNhOZfQuCgsOvRElO3gSXrNBML2Xbk/yVxpfy/vCYYPoGRehR6LxQc s1bdXbPsd7qcLDUD6vdKG4lcUfJ3XdfME+QqYNA9Pwvh9ywEoqLZ1ksSpkdUq9bBoazL c52ptGildRybK0VvTTWVAtsgTw8X+vAnYX7aldOmcc78dvoOyrultVxh4T53R+btcQU9 CemO3ICb28vwpZuI5HZyjv82+ycvGafObmAO5fsBzbTD2KlATh+j78g3d/VXgMOxsdub Z/0PXZLQN/sg/XuvEQSBPYevsIUcQJXTWAp2886wle8x7AjsUq3ZfvSzu+I+gpsiEdiz 6V+w== X-Gm-Message-State: AOJu0Yxh0FgLqLrUbW+ee4nLNcX2V1RbpCQzpHn530RK1PiFrAbcOnsf OQF2nSrNWmxrEOPX4XhBsUQFX1K8m64b+Z3VzdrVt9V9FAdI276YrFGPV0oMQTJ/OdLTWljDsNj T X-Google-Smtp-Source: AGHT+IFMULlYX30gx7/WDrQDuYI5b8txZKu8EJEj5xTuFJzQwp4AKwqKqXTfhuc8rQbR038mn5MYsw== X-Received: by 2002:a17:907:2d0d:b0:a9a:59f:dfb9 with SMTP id a640c23a62f3a-a9e508ace9bmr2371843066b.5.1730912928100; Wed, 06 Nov 2024 09:08:48 -0800 (PST) Received: from localhost.localdomain ([2a01:599:11f:568:ac4e:b7dd:b9ad:2569]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb18148edsm304025166b.198.2024.11.06.09.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 09:08:47 -0800 (PST) From: Roman Scherer Date: Wed, 6 Nov 2024 18:08:42 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.96 X-Spam-Score: -3.96 X-Migadu-Queue-Id: 6A7F81A7BD X-Migadu-Scanner: mx10.migadu.com X-TUID: 29Sv5nZyo1S0 * gnu/packages/crates-io.scm (rust-speakersafetyd-1): New variable. Change-Id: I02eb6e0c23fd04cff86b67ed30e8867af07a724b --- gnu/packages/crates-io.scm | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index c08ccd29fd..22b28e0845 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -73271,6 +73271,58 @@ (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 + (list + #: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 _ + (substitute* "src/main.rs" + (("/usr/local") #$output)))) + (add-after 'unpack 'remove-systemd-udev-rules + (lambda _ + (substitute* "95-speakersafetyd.rules" + ((".*SYSTEMD_WANTS.*") "")))) + (add-after 'install 'install-data + (lambda _ + (setenv "BINDIR" (string-append #$output "/bin")) + (setenv "UNITDIR" (string-append #$output "/lib/systemd/system")) + (setenv "UDEVDIR" (string-append #$output "/lib/udev/rules.d")) + (setenv "TMPFILESDIR" (string-append #$output "/usr/lib/tmpfiles.d")) + (setenv "SHAREDIR" (string-append #$output "/usr/share")) + (setenv "VARDIR" (string-append #$output "/var")) + (invoke "make" "install-data")))))) + (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: 54f82bcf22178d89140a131332a9e036ac386657 -- 2.46.0