[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/11: gnu: noisetorch: Update to 0.12.2.
From: |
guix-commits |
Subject: |
08/11: gnu: noisetorch: Update to 0.12.2. |
Date: |
Mon, 15 Aug 2022 10:43:17 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 8e82a70a4f28e1c7df6f1342c54cfff60e69e962
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Aug 7 02:00:01 2022 +0200
gnu: noisetorch: Update to 0.12.2.
* gnu/packages/pulseaudio.scm (noisetorch): Update to 0.12.2.
[source]: Switch to maintained fork.
[arguments]: Update all ‘paths’ accordingly. Rename 'symlink-rnnoise
phase to 'copy-rnnoise-library and do so. Remove 'gen-version.go phase.
Don't explicitly return #f from phases.
[home-page]: Update to match SOURCE.
---
gnu/packages/pulseaudio.scm | 42 ++++++++++++++++--------------------------
1 file changed, 16 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm
index 1fb64fd8a6..1f2dea5a8c 100644
--- a/gnu/packages/pulseaudio.scm
+++ b/gnu/packages/pulseaudio.scm
@@ -486,53 +486,43 @@ The plugin is made to work with 1 or 2 channels (ladspa
plugin),
(define-public noisetorch
(package
(name "noisetorch")
- (version "0.8.3")
+ (version "0.12.2")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/lawl/NoiseTorch")
- (commit version)))
+ (url "https://github.com/noisetorch/NoiseTorch")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "115sq4waq048bv82lnq5sblf62m50yvyakx7x06qq359v7qf5ji1"))))
+ (base32 "1qwzqv4rww9xywkfnjr79489d35cypa1zm9rgm966g51zzwhxrck"))))
(build-system go-build-system)
(arguments
- `(#:import-path "github.com/lawl/NoiseTorch"
+ `(#:import-path "github.com/noisetorch/NoiseTorch"
#:install-source? #f
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'symlink-rnnoise
+ (add-after 'unpack 'copy-rnnoise-library
(lambda* (#:key inputs #:allow-other-keys)
- (with-directory-excursion "src/github.com/lawl/NoiseTorch"
- (let ((dir "librnnoise_ladspa/bin/ladspa")
- (rnnoise (assoc-ref inputs "rnnoise")))
+ (with-directory-excursion "src/github.com/noisetorch/NoiseTorch"
+ (let ((lib (search-input-file inputs
+
"lib/ladspa/librnnoise_ladspa.so"))
+ (dir "c/ladspa"))
(mkdir-p dir)
- (symlink (string-append rnnoise
"/lib/ladspa/librnnoise_ladspa.so")
- (string-append dir "/librnnoise_ladspa.so"))))
- #t))
- (add-after 'unpack 'gen-version.go
- (lambda _
- (with-directory-excursion "src/github.com/lawl/NoiseTorch"
- (substitute* "main.go"
- (("//go:generate go run scripts/embedversion\\.go") ""))
- (with-output-to-file "version.go"
- (lambda ()
- (format #t "package main~%~%var version=~s~&" ,version))))
- #t))
+ ;; Symlinking won't work: ‘cannot embed irregular file’!
+ (copy-file lib (string-append dir "/rnnoise_ladspa.so"))))))
(add-after 'unpack 'disable-update-check.go
(lambda _
- (with-directory-excursion "src/github.com/lawl/NoiseTorch"
+ (with-directory-excursion "src/github.com/noisetorch/NoiseTorch"
(substitute* "main.go"
- ((".*updateCheck.*") "")))
- #t))
+ ((".*updateCheck.*") "")))))
(add-before 'build 'go-generate
(lambda _
- (with-directory-excursion "src/github.com/lawl/NoiseTorch"
+ (with-directory-excursion "src/github.com/noisetorch/NoiseTorch"
(invoke "go" "generate")))))))
(inputs
(list rnnoise))
- (home-page "https://github.com/lawl/NoiseTorch")
+ (home-page "https://github.com/noisetorch/NoiseTorch")
(synopsis "Real-time microphone noise suppression")
(description "NoiseTorch creates a virtual PulseAudio microphone that
suppresses noise, in any application. Use whichever conferencing or VOIP
- branch master updated (de29a26008 -> d248d8b519), guix-commits, 2022/08/15
- 11/11: gnu: rnnoise: Remove input labels., guix-commits, 2022/08/15
- 10/11: gnu: rnnoise: Unhide and rename variable., guix-commits, 2022/08/15
- 08/11: gnu: noisetorch: Update to 0.12.2.,
guix-commits <=
- 09/11: gnu: noise-suppression-for-voice: Rename from ‘rnnoise’., guix-commits, 2022/08/15
- 07/11: gnu: openvpn: Update to 2.5.7., guix-commits, 2022/08/15
- 06/11: gnu: nftables: Update to 1.0.5., guix-commits, 2022/08/15
- 05/11: gnu: libnftnl: Update to 1.2.3., guix-commits, 2022/08/15
- 04/11: gnu: bird: Update to 2.0.10., guix-commits, 2022/08/15
- 03/11: gnu: catfish: Update to 4.16.4., guix-commits, 2022/08/15
- 01/11: gnu: os-prober: Update to 1.81., guix-commits, 2022/08/15
- 02/11: gnu: libupnp: Update to 1.14.13., guix-commits, 2022/08/15