[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/13: gnu: Add nerd-dictation/wayland.
From: |
guix-commits |
Subject: |
09/13: gnu: Add nerd-dictation/wayland. |
Date: |
Mon, 17 Oct 2022 04:45:57 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit d5b54e0137933f891065abf202a0d932f96653ee
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Thu Sep 29 11:02:03 2022 +0200
gnu: Add nerd-dictation/wayland.
* gnu/packages/machine-learning.scm (nerd-dictation/wayland): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 @@
#: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 @@
#: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 @@ operations. It has zero overhead, as this relies on
manual activation and
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)))))))
- branch master updated (094b357783 -> c2cb116032), guix-commits, 2022/10/17
- 11/13: gnu: git-annex: Promote git to propagated input, guix-commits, 2022/10/17
- 01/13: Revert "nix: Guard against removing temporary roots of living processes.", guix-commits, 2022/10/17
- 04/13: gnu: Add openfst-for-vosk., guix-commits, 2022/10/17
- 03/13: channels: Interpret the 'commit' field of channel as a tag or commit., guix-commits, 2022/10/17
- 05/13: gnu: Add kaldi-for-vosk., guix-commits, 2022/10/17
- 08/13: gnu: Add nerd-dictation., guix-commits, 2022/10/17
- 06/13: gnu: Add vosk-api., guix-commits, 2022/10/17
- 02/13: git: 'update-cached-checkout' returns the commit ID when given a tag., guix-commits, 2022/10/17
- 07/13: gnu: Add python-vosk., guix-commits, 2022/10/17
- 09/13: gnu: Add nerd-dictation/wayland.,
guix-commits <=
- 10/13: read-print: Recognize 'define-record-type' and 'define-record-type*'., guix-commits, 2022/10/17
- 12/13: gnu: nheko: Do not build api docs., guix-commits, 2022/10/17
- 13/13: gnu: Add hunspell-dict-hu., guix-commits, 2022/10/17