From 1410227449644c48ead3f53ab50b875aa7339841 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Tue, 9 Nov 2021 22:00:59 +0000 Subject: [PATCH] zita-resampler: fix build for aarch64 --- pkgs/development/libraries/audio/zita-resampler/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/audio/zita-resampler/default.nix b/pkgs/development/libraries/audio/zita-resampler/default.nix index 3b3c005a015b..6395ff10683f 100644 --- a/pkgs/development/libraries/audio/zita-resampler/default.nix +++ b/pkgs/development/libraries/audio/zita-resampler/default.nix @@ -15,7 +15,11 @@ stdenv.mkDerivation rec { patchPhase = '' cd source - sed -e "s@ldconfig@@" -i Makefile + substituteInPlace Makefile \ + --replace 'ldconfig' "" + '' + lib.optionalString (!stdenv.targetPlatform.isx86_64) '' + substituteInPlace Makefile \ + --replace '-DENABLE_SSE2' "" ''; fixupPhase = ''