From 386647bebf6b1430c783790a513a51769f478252 Mon Sep 17 00:00:00 2001 From: Yureka Date: Sat, 16 Dec 2023 00:06:12 +0100 Subject: [PATCH] lsp-plugins: apply patch "Fix aarch64 msmatrix code" (#274504) This fixes a critical issue in the dsp code path used on Apple Silicon machines --- pkgs/applications/audio/lsp-plugins/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/lsp-plugins/default.nix b/pkgs/applications/audio/lsp-plugins/default.nix index 43e5338cb9bb..e6db737c4016 100644 --- a/pkgs/applications/audio/lsp-plugins/default.nix +++ b/pkgs/applications/audio/lsp-plugins/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, pkg-config, makeWrapper +{ lib, stdenv, fetchurl, fetchpatch, pkg-config, makeWrapper , libsndfile, jack2 , libGLU, libGL, lv2, cairo , ladspaH, php, libXrandr }: @@ -11,6 +11,14 @@ stdenv.mkDerivation rec { url = "https://github.com/sadko4u/${pname}/releases/download/${version}/${pname}-src-${version}.tar.gz"; sha256 = "sha256-eJO+1fCNzqjTdGrPlhIrHc3UimkJOydRqTq49IN+Iwo="; }; + patches = [ + (fetchpatch { + url = "https://github.com/lsp-plugins/lsp-dsp-lib/commit/58c3f985f009c84347fa91236f164a9e47aafa93.patch"; + stripLen = 1; + extraPrefix = "modules/lsp-dsp-lib/"; + hash = "sha256-pCLucLijXOgp69xNjSRCRxgVoQziT0YiHLnQGbkefqE="; + }) + ]; outputs = [ "out" "dev" "doc" ];