1 { lib, stdenv, fetchurl, pkg-config, libsamplerate, libsndfile, fftw
2 , vamp-plugin-sdk, ladspaH, meson, ninja, darwin }:
4 stdenv.mkDerivation rec {
9 url = "https://breakfastquay.com/files/releases/${pname}-${version}.tar.bz2";
10 sha256 = "sha256-uVp22lzbOWZ3DGARXs2Dj4QGESD4hMO/3JBPdZMeyao=";
13 nativeBuildInputs = [ pkg-config meson ninja ];
14 buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH ] ++ lib.optionals stdenv.isDarwin
15 (with darwin.apple_sdk.frameworks; [Accelerate CoreGraphics CoreVideo]);
16 makeFlags = [ "AR:=$(AR)" ];
19 description = "High quality software library for audio time-stretching and pitch-shifting";
20 homepage = "https://breakfastquay.com/rubberband/";
21 # commercial license available as well, see homepage. You'll get some more optimized routines
22 license = licenses.gpl2Plus;
23 maintainers = [ maintainers.goibhniu maintainers.marcweber ];
24 platforms = platforms.all;