nixpkgs/pkgs/applications/audio/noisetorch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Normal View History

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