3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/noisetorch/default.nix

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-06-19 12:08:37 +01:00
version = "0.11.3";
2020-07-19 16:34:54 +01:00
src = fetchFromGitHub {
owner = "lawl";
repo = "NoiseTorch";
rev = version;
2021-06-19 12:08:37 +01:00
sha256 = "0rjs6hbi7dvd179lzjmvqy4rv4pbc9amgzb8jfky4yc0zh8xf5z5";
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;
2021-06-19 12:08:37 +01:00
maintainers = with maintainers; [ panaeon legendofmiracles ];
2020-07-19 16:34:54 +01:00
};
}