3
0
Fork 0
forked from mirrors/nixpkgs

noisetorch: 0.8.2 -> 0.9.0

This commit is contained in:
Reed 2020-12-17 10:41:37 -05:00 committed by Jonathan Ringer
parent c040b918cc
commit 1328c5d95d
2 changed files with 5 additions and 16 deletions

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "NoiseTorch";
version = "0.8.2";
version = "0.9.0";
src = fetchFromGitHub {
owner = "lawl";
repo = "NoiseTorch";
rev = version;
sha256 = "14i04rmraxbddcvk0k9c6ak9invln7002g5jms54kcjzv9p39hbf";
sha256 = "1a4g112h83m55pga8kq2a1wzxpycj59v4bygyjfyi1s09q1y97qg";
};
patches = [ ./version.patch ./embedlibrnnoise.patch ];
patches = [ ./version.patch ];
vendorSha256 = null;
@ -21,6 +21,8 @@ buildGoModule rec {
buildInputs = [ rnnoise-plugin ];
postPatch = "substituteInPlace main.go --replace 'librnnoise_ladspa/bin/ladspa/librnnoise_ladspa.so' '$RNNOISE_LADSPA_PLUGIN'";
preBuild = ''
export RNNOISE_LADSPA_PLUGIN="${rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
go generate;

View file

@ -1,13 +0,0 @@
diff --git a/scripts/embedlibrnnoise.go b/scripts/embedlibrnnoise.go
index 43daf80..0b3004b 100644
--- a/scripts/embedlibrnnoise.go
+++ b/scripts/embedlibrnnoise.go
@@ -8,7 +8,7 @@ import (
)
func main() {
- b, err := ioutil.ReadFile("librnnoise_ladspa/bin/ladspa/librnnoise_ladspa.so")
+ b, err := ioutil.ReadFile(os.Getenv("RNNOISE_LADSPA_PLUGIN"))
if err != nil {
fmt.Printf("Couldn't read librnnoise_ladspa.so: %v\n", err)
os.Exit(1)