depot/third_party/nixpkgs/pkgs/applications/audio/noisetorch/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

44 lines
1.2 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "NoiseTorch";
version = "0.12.0";
src = fetchFromGitHub {
owner = "noisetorch";
repo = "NoiseTorch";
rev = "v${version}";
sha256 = "sha256-A6cX1ck47/ZIn9cnV/Ow4CxVFfOX5J0K0Q+B70jCFdQ=";
fetchSubmodules = true;
};
vendorHash = null;
doCheck = false;
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.distribution=nix" ];
subPackages = [ "." ];
preBuild = ''
make -C c/ladspa/
go generate
rm ./scripts/*
'';
postInstall = ''
install -D ./assets/icon/noisetorch.png $out/share/icons/hicolor/256x256/apps/noisetorch.png
install -Dm444 ./assets/noisetorch.desktop $out/share/applications/noisetorch.desktop
'';
meta = with lib; {
insecure = true;
knownVulnerabilities =
lib.optional (lib.versionOlder version "0.12") "https://github.com/noisetorch/NoiseTorch/releases/tag/v0.12.0";
description = "Virtual microphone device with noise supression for PulseAudio";
homepage = "https://github.com/noisetorch/NoiseTorch";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ panaeon lom ];
};
}