2022-09-09 14:08:57 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "NoiseTorch";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.12.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-06-16 17:23:12 +00:00
|
|
|
owner = "noisetorch";
|
2020-08-20 17:08:02 +00:00
|
|
|
repo = "NoiseTorch";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-A6cX1ck47/ZIn9cnV/Ow4CxVFfOX5J0K0Q+B70jCFdQ=";
|
|
|
|
fetchSubmodules = true;
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
vendorHash = null;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.distribution=nix" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
subPackages = [ "." ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
make -C c/ladspa/
|
|
|
|
go generate
|
2020-08-20 17:08:02 +00:00
|
|
|
rm ./scripts/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
install -D ./assets/icon/noisetorch.png $out/share/icons/hicolor/256x256/apps/noisetorch.png
|
2022-09-09 14:08:57 +00:00
|
|
|
install -Dm444 ./assets/noisetorch.desktop $out/share/applications/noisetorch.desktop
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
insecure = true;
|
|
|
|
knownVulnerabilities =
|
|
|
|
lib.optional (lib.versionOlder version "0.12") "https://github.com/noisetorch/NoiseTorch/releases/tag/v0.12.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Virtual microphone device with noise supression for PulseAudio";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/noisetorch/NoiseTorch";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ panaeon lom ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|