From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aFbLKt9gNWMSjQAAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 11:09:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iBA9Kt9gNWPdXQEAauVa8A (envelope-from ) for ; Thu, 29 Sep 2022 11:09:51 +0200 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 505FEF044 for ; Thu, 29 Sep 2022 11:09:51 +0200 (CEST) Received: from localhost ([::1]:34022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odpYE-0005It-HA for larch@yhetil.org; Thu, 29 Sep 2022 05:09:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odpRe-00008I-W8 for guix-patches@gnu.org; Thu, 29 Sep 2022 05:03:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odpRe-0004wR-Hh for guix-patches@gnu.org; Thu, 29 Sep 2022 05:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odpRe-00031m-D1 for guix-patches@gnu.org; Thu, 29 Sep 2022 05:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58140] [PATCH v4 2/2] gnu: Add nerd-dictation/wayland. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 09:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58140 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 58140@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 58140-submit@debbugs.gnu.org id=B58140.166444214211543 (code B ref 58140); Thu, 29 Sep 2022 09:03:02 +0000 Received: (at 58140) by debbugs.gnu.org; 29 Sep 2022 09:02:22 +0000 Received: from localhost ([127.0.0.1]:35954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpR0-000307-7Z for submit@debbugs.gnu.org; Thu, 29 Sep 2022 05:02:22 -0400 Received: from 5.mo550.mail-out.ovh.net ([178.33.45.107]:42935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpQu-0002zm-5I for 58140@debbugs.gnu.org; Thu, 29 Sep 2022 05:02:17 -0400 Received: from player693.ha.ovh.net (unknown [10.110.208.89]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 113B5260B9 for <58140@debbugs.gnu.org>; Thu, 29 Sep 2022 09:02:15 +0000 (UTC) Received: from ngraves.fr (met42-h01-213-44-161-47.dsl.sta.abo.bbox.fr [213.44.161.47]) (Authenticated sender: ngraves@ngraves.fr) by player693.ha.ovh.net (Postfix) with ESMTPSA id 87A012F14F455; Thu, 29 Sep 2022 09:02:13 +0000 (UTC) X-OVh-ClientIp: 213.44.161.47 Date: Thu, 29 Sep 2022 11:02:03 +0200 Message-Id: <20220929090203.6672-2-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220929090203.6672-1-ngraves@ngraves.fr> References: <20220929090203.6672-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6851663886250926818 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehtddguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepleffjeetueethfefkeffffefvddukeejkefgleduiedthfekvefhiedvhfffgeegnecukfhppedtrddtrddtrddtpddvudefrdeggedrudeiuddrgeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrheileefrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepheekudegtdesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheehtd 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664442591; h=from:from:sender:sender:reply-to: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; bh=okXoN8hkzogJ+bKWnzcmyud+k/fOIhEQy0PtXogvOvI=; b=nLdOyHkv0TpuOszEyVN0abBeF0j4/mj8oLp5p8Ibl+qKLq75u+b7pBC9bT7PnG6QYyD/0u EKKUc/Nxg/pVP8Hxn1xJtORq+dJBKyXuYH5I2htEQWxXQnxj6B/yK4qU+JIb0YLrZc9zMg Di0/vaNr9AJTUcz9DhOkpj19Kvjo/zWbIyYdZbnJEL3KQDPxnEuFC8EweqY368M2x+tSLc 5nFax4cvUZt/3kFMdE/T45GbhT0qhxqrHJ0EQ+uk5CGnecRbyRIw+krMZCaVhc3UN3IvE6 Pmkh3Gbh1HxX9RPeEwx5e4aYrAOItCwvDlOzf1Dt9trxCymjTSpFdyBJHSocDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664442591; a=rsa-sha256; cv=none; b=bppEz8hNg07B8BjeERiCSjk+CIbc80b4Vi/SSsrDyDH/grNPS3nXXTrajixibbIDO6kQwB MEtk3plAlAcXNANu1HAO9aksCx1UF7OGiVa/0YEdYD+PJo364TR5n/PuEyZ2AjY2Zh1YW1 NaZx4vjmqOWsVkQDIdwy28g7eXYRdYToqQDHoR4hBn40J2Vzuwn/Tg+/q2XT24x406MrKW 05SQ9jf8mde5gBDUuXFEPUOgNqfpzebnqf0MErn2bSyNwM8PovxrIdGWzRvK9ulpyYxcLV xj7GSc/FY4bpOGs9uH12Xnu3H1TJWbMVhvgAvrYcOuuJ5MDP4a95H+sSJISsBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 505FEF044 X-Spam-Score: -1.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: Cwn4Dx32HgTr * gnu/packages/machine-learning.scm (nerd-dictation/wayland): New variable. --- gnu/packages/machine-learning.scm | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index f2c9b8dace..c0d6ccfd19 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -45,6 +45,7 @@ (define-module (gnu packages machine-learning) #:use-module (guix build-system ocaml) #:use-module (guix build-system python) #:use-module (guix build-system r) + #:use-module (guix build-system trivial) #:use-module (guix git-download) #:use-module (gnu packages) #:use-module (gnu packages adns) @@ -103,6 +104,7 @@ (define-module (gnu packages machine-learning) #:use-module (gnu packages video) #:use-module (gnu packages web) #:use-module (gnu packages xml) + #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg) #:use-module (ice-9 match)) @@ -3636,3 +3638,36 @@ (define-public nerd-dictation there are no background processes. Dictation is accessed manually with @code{nerd-dictation begin} and @code{nerd-dictation end} commands.") (license license:gpl3+)))) + +(define-public nerd-dictation/wayland + (package + (inherit nerd-dictation) + (name "nerd-dictation-wayland") + (inputs (list bash-minimal nerd-dictation)) + (propagated-inputs (list ydotool sox)) + (build-system trivial-build-system) + (arguments + (list + #:modules '((guix build utils)) + #:builder + #~(begin + (use-modules (guix build utils)) + (let* ((exe (string-append #$output "/bin/nerd-dictation")) + (original-exe #$(file-append nerd-dictation + "/bin/nerd-dictation")) + (bash #$(this-package-input "bash-minimal")) + (bash-exe (string-append bash "/bin/bash"))) + (mkdir-p (dirname exe)) + (call-with-output-file exe + (lambda (port) + (format port "#!~a +if [ \"$1\" = begin ] + then + exec ~a $@ --input=SOX --simulate-input-tool=YDOTOOL + else + exec ~a $@ +fi" + bash-exe + original-exe + original-exe))) + (chmod exe #o555))))))) -- 2.37.3