From ec405741495a8a27edd0a8b16cbbe090778cebc8 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Sun, 22 May 2022 12:29:50 -0400 Subject: [PATCH] rubberband: fix build on darwin rubberband's build uses apple's Accelerate framework for it's FFT by default on darwin. We could either tell it to use the built-in fft (the code that is used on linux) or add the dependencies on the Apple frameworks. This change adds the appropriate dependencies for darwin to build with rubberband's default configuration. --- pkgs/development/libraries/rubberband/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/rubberband/default.nix b/pkgs/development/libraries/rubberband/default.nix index 5cb5da3224fe..117de74d9870 100644 --- a/pkgs/development/libraries/rubberband/default.nix +++ b/pkgs/development/libraries/rubberband/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, pkg-config, libsamplerate, libsndfile, fftw -, vamp-plugin-sdk, ladspaH, meson, ninja }: +, vamp-plugin-sdk, ladspaH, meson, ninja, darwin }: stdenv.mkDerivation rec { pname = "rubberband"; @@ -11,7 +11,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkg-config meson ninja ]; - buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH ]; + buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH ] ++ lib.optionals stdenv.isDarwin + (with darwin.apple_sdk.frameworks; [Accelerate CoreGraphics CoreVideo]); makeFlags = [ "AR:=$(AR)" ]; meta = with lib; { @@ -20,6 +21,6 @@ stdenv.mkDerivation rec { # commercial license available as well, see homepage. You'll get some more optimized routines license = licenses.gpl2Plus; maintainers = [ maintainers.goibhniu maintainers.marcweber ]; - platforms = platforms.linux; + platforms = platforms.all; }; }