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

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

42 lines
1.0 KiB
Nix
Raw Normal View History

2022-07-30 19:48:18 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
2020-07-19 16:34:54 +01:00
buildGoModule rec {
pname = "NoiseTorch";
version = "0.12.2";
2020-07-19 16:34:54 +01:00
src = fetchFromGitHub {
2022-06-05 03:35:37 +01:00
owner = "noisetorch";
2020-07-19 16:34:54 +01:00
repo = "NoiseTorch";
2022-06-05 03:35:37 +01:00
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-gOPSMPH99Upi/30OnAdwSb7SaMV0i/uHB051cclfz6A=";
2020-07-19 16:34:54 +01:00
};
vendorHash = null;
2020-07-19 16:34:54 +01:00
doCheck = false;
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.distribution=nixpkgs" ];
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
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
2022-07-30 19:48:18 +01:00
install -Dm444 ./assets/noisetorch.desktop $out/share/applications/noisetorch.desktop
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";
2022-06-05 03:35:37 +01:00
homepage = "https://github.com/noisetorch/NoiseTorch";
2020-07-19 16:34:54 +01:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ panaeon lom ];
2020-07-19 16:34:54 +01:00
};
}