diff --git a/pkgs/by-name/tr/triforce-lv2/package.nix b/pkgs/by-name/tr/triforce-lv2/package.nix new file mode 100644 index 000000000000..f6f156347537 --- /dev/null +++ b/pkgs/by-name/tr/triforce-lv2/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "triforce-lv2"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "chadmed"; + repo = "triforce"; + rev = version; + hash = "sha256-Rv4FHDmmTELYwrxfWDt/TghspLQBGgiREaq3KV98EQY="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-ltrvwvrzRPtgB4y/TeIHhIQdWAfo2NHTeDYvDqTuPXE="; + + installPhase = '' + export LIBDIR=$out/lib + mkdir -p $LIBDIR + + make + make install + ''; + + meta = with lib; { + homepage = "https://github.com/chadmed/triforce"; + description = "Minimum Variance Distortionless Response adaptive beamformer for the microphone array found in some Apple Silicon laptops"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ yuka ]; + platforms = platforms.linux; + }; +}