3
0
Fork 0
forked from mirrors/nixpkgs
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 12:08:37 +01:00
{ lib, buildGoModule, fetchFromGitHub, copyDesktopItems }:
2020-07-19 16:34:54 +01:00
buildGoModule rec {
pname = "NoiseTorch";
2021-09-28 19:31:19 +01:00
version = "0.11.4";
2020-07-19 16:34:54 +01:00
src = fetchFromGitHub {
owner = "lawl";
repo = "NoiseTorch";
rev = version;
2021-09-28 19:31:19 +01:00
sha256 = "sha256-3+Yk7dqD7eyvd1I5CMmrg085ZtFxD2EnGqL5ttwx8eM=";
2020-07-19 16:34:54 +01:00
};
vendorSha256 = null;
doCheck = false;
2021-06-19 12:08:37 +01:00
ldflags = [ "-X main.version=${version}" "-X main.distribution=nix" ];
2020-07-19 16:34:54 +01:00
2021-06-19 12:08:37 +01:00
subPackages = [ "." ];
2020-07-19 16:34:54 +01:00
2021-06-19 12:08:37 +01:00
nativeBuildInputs = [ copyDesktopItems ];
2020-12-17 15:41:37 +00:00
2020-07-19 16:34:54 +01:00
preBuild = ''
2021-06-19 12:08:37 +01:00
make -C c/ladspa/
go generate
2020-07-19 16:34:54 +01:00
rm ./scripts/*
'';
postInstall = ''
2021-06-19 12:08:37 +01: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 16:34:54 +01:00
'';
meta = with lib; {
2020-07-19 16:34:54 +01: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 16:34:54 +01:00
};
}