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.
This commit is contained in:
parent
39b77ed3aa
commit
8e82a70a4f
1 changed files with 16 additions and 26 deletions
|
|
@ -486,53 +486,43 @@ The plugin is made to work with 1 or 2 channels (ladspa plugin),
|
||||||
(define-public noisetorch
|
(define-public noisetorch
|
||||||
(package
|
(package
|
||||||
(name "noisetorch")
|
(name "noisetorch")
|
||||||
(version "0.8.3")
|
(version "0.12.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/lawl/NoiseTorch")
|
(url "https://github.com/noisetorch/NoiseTorch")
|
||||||
(commit version)))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "115sq4waq048bv82lnq5sblf62m50yvyakx7x06qq359v7qf5ji1"))))
|
(base32 "1qwzqv4rww9xywkfnjr79489d35cypa1zm9rgm966g51zzwhxrck"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "github.com/lawl/NoiseTorch"
|
`(#:import-path "github.com/noisetorch/NoiseTorch"
|
||||||
#:install-source? #f
|
#:install-source? #f
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'symlink-rnnoise
|
(add-after 'unpack 'copy-rnnoise-library
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(with-directory-excursion "src/github.com/lawl/NoiseTorch"
|
(with-directory-excursion "src/github.com/noisetorch/NoiseTorch"
|
||||||
(let ((dir "librnnoise_ladspa/bin/ladspa")
|
(let ((lib (search-input-file inputs
|
||||||
(rnnoise (assoc-ref inputs "rnnoise")))
|
"lib/ladspa/librnnoise_ladspa.so"))
|
||||||
|
(dir "c/ladspa"))
|
||||||
(mkdir-p dir)
|
(mkdir-p dir)
|
||||||
(symlink (string-append rnnoise "/lib/ladspa/librnnoise_ladspa.so")
|
;; Symlinking won't work: ‘cannot embed irregular file’!
|
||||||
(string-append dir "/librnnoise_ladspa.so"))))
|
(copy-file lib (string-append dir "/rnnoise_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))
|
|
||||||
(add-after 'unpack 'disable-update-check.go
|
(add-after 'unpack 'disable-update-check.go
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-directory-excursion "src/github.com/lawl/NoiseTorch"
|
(with-directory-excursion "src/github.com/noisetorch/NoiseTorch"
|
||||||
(substitute* "main.go"
|
(substitute* "main.go"
|
||||||
((".*updateCheck.*") "")))
|
((".*updateCheck.*") "")))))
|
||||||
#t))
|
|
||||||
(add-before 'build 'go-generate
|
(add-before 'build 'go-generate
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-directory-excursion "src/github.com/lawl/NoiseTorch"
|
(with-directory-excursion "src/github.com/noisetorch/NoiseTorch"
|
||||||
(invoke "go" "generate")))))))
|
(invoke "go" "generate")))))))
|
||||||
(inputs
|
(inputs
|
||||||
(list rnnoise))
|
(list rnnoise))
|
||||||
(home-page "https://github.com/lawl/NoiseTorch")
|
(home-page "https://github.com/noisetorch/NoiseTorch")
|
||||||
(synopsis "Real-time microphone noise suppression")
|
(synopsis "Real-time microphone noise suppression")
|
||||||
(description "NoiseTorch creates a virtual PulseAudio microphone that
|
(description "NoiseTorch creates a virtual PulseAudio microphone that
|
||||||
suppresses noise, in any application. Use whichever conferencing or VOIP
|
suppresses noise, in any application. Use whichever conferencing or VOIP
|
||||||
|
|
|
||||||
Reference in a new issue