My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/applications/audio/noisetorch/default.nix

42 lines
1.0 KiB

{ lib, buildGoModule, fetchFromGitHub, copyDesktopItems }:
buildGoModule rec {
pname = "NoiseTorch";
version = "0.11.5";
src = fetchFromGitHub {
owner = "lawl";
repo = "NoiseTorch";
rev = version;
sha256 = "sha256-j/6XB3vA5LvTuCxmeB0HONqEDzYg210AWW/h3nCGOD8=";
};
vendorSha256 = null;
doCheck = false;
ldflags = [ "-X main.version=${version}" "-X main.distribution=nix" ];
subPackages = [ "." ];
nativeBuildInputs = [ copyDesktopItems ];
preBuild = ''
make -C c/ladspa/
go generate
rm ./scripts/*
'';
postInstall = ''
install -D ./assets/icon/noisetorch.png $out/share/icons/hicolor/256x256/apps/noisetorch.png
copyDesktopItems assets/noisetorch.desktop $out/share/applications/
'';
meta = with lib; {
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 ];
};
}