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

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

43 lines
1 KiB
Nix
Raw Normal View History

2021-06-19 13:08:37 +02:00
{ lib, buildGoModule, fetchFromGitHub, copyDesktopItems }:
2020-07-19 17:34:54 +02:00
buildGoModule rec {
pname = "NoiseTorch";
2021-09-28 20:31:19 +02:00
version = "0.11.4";
2020-07-19 17:34:54 +02:00
src = fetchFromGitHub {
owner = "lawl";
repo = "NoiseTorch";
rev = version;
2021-09-28 20:31:19 +02:00
sha256 = "sha256-3+Yk7dqD7eyvd1I5CMmrg085ZtFxD2EnGqL5ttwx8eM=";
2020-07-19 17:34:54 +02:00
};
vendorSha256 = null;
doCheck = false;
2021-06-19 13:08:37 +02:00
ldflags = [ "-X main.version=${version}" "-X main.distribution=nix" ];
2020-07-19 17:34:54 +02:00
2021-06-19 13:08:37 +02:00
subPackages = [ "." ];
2020-07-19 17:34:54 +02:00
2021-06-19 13:08:37 +02:00
nativeBuildInputs = [ copyDesktopItems ];
2020-12-17 16:41:37 +01:00
2020-07-19 17:34:54 +02:00
preBuild = ''
2021-06-19 13:08:37 +02:00
make -C c/ladspa/
go generate
2020-07-19 17:34:54 +02:00
rm ./scripts/*
'';
postInstall = ''
2021-06-19 13:08:37 +02:00
install -D ./assets/icon/noisetorch.png $out/share/icons/hicolor/256x256/apps/noisetorch.png
copyDesktopItems assets/noisetorch.desktop $out/share/applications/
2020-07-19 17:34:54 +02:00
'';
meta = with lib; {
2020-07-19 17:34:54 +02:00
description = "Virtual microphone device with noise supression for PulseAudio";
homepage = "https://github.com/lawl/NoiseTorch";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ panaeon lom ];
2020-07-19 17:34:54 +02:00
};
}