From a72e7726b3f7096f58cb89d8253c01639e1c025d Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 6 Jan 2022 18:00:59 +0800 Subject: [PATCH] vamp-plugin-sdk: fix cross compilation --- pkgs/development/libraries/audio/vamp-plugin-sdk/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/audio/vamp-plugin-sdk/default.nix b/pkgs/development/libraries/audio/vamp-plugin-sdk/default.nix index 01b3caa24ea2..65ce6580dcec 100644 --- a/pkgs/development/libraries/audio/vamp-plugin-sdk/default.nix +++ b/pkgs/development/libraries/audio/vamp-plugin-sdk/default.nix @@ -18,6 +18,10 @@ stdenv.mkDerivation rec { buildInputs = [ libsndfile ]; enableParallelBuilding = true; + makeFlags = [ + "AR:=$(AR)" + "RANLIB:=$(RANLIB)" + ] ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-o test"; meta = with lib; { description = "Audio processing plugin system for plugins that extract descriptive information from audio data";