2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libsamplerate, libsndfile, fftw
|
2022-05-22 16:29:50 +00:00
|
|
|
, vamp-plugin-sdk, ladspaH, meson, ninja, darwin }:
|
2010-07-28 18:01:17 +00:00
|
|
|
|
2020-05-29 12:15:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rubberband";
|
2022-10-01 00:30:49 +00:00
|
|
|
version = "3.1.0";
|
2009-09-21 09:58:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-05-29 12:15:14 +00:00
|
|
|
url = "https://breakfastquay.com/files/releases/${pname}-${version}.tar.bz2";
|
2022-10-01 00:30:49 +00:00
|
|
|
sha256 = "sha256-uVp22lzbOWZ3DGARXs2Dj4QGESD4hMO/3JBPdZMeyao=";
|
2009-09-21 09:58:30 +00:00
|
|
|
};
|
|
|
|
|
2022-05-06 15:02:08 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja ];
|
2022-05-22 16:29:50 +00:00
|
|
|
buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH ] ++ lib.optionals stdenv.isDarwin
|
|
|
|
(with darwin.apple_sdk.frameworks; [Accelerate CoreGraphics CoreVideo]);
|
2022-01-10 08:39:18 +00:00
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
2009-09-21 09:58:30 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-07-28 18:01:17 +00:00
|
|
|
description = "High quality software library for audio time-stretching and pitch-shifting";
|
2020-05-29 12:15:14 +00:00
|
|
|
homepage = "https://breakfastquay.com/rubberband/";
|
2014-02-17 23:32:45 +00:00
|
|
|
# commercial license available as well, see homepage. You'll get some more optimized routines
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.goibhniu maintainers.marcweber ];
|
2022-05-22 16:29:50 +00:00
|
|
|
platforms = platforms.all;
|
2009-09-21 09:58:30 +00:00
|
|
|
};
|
|
|
|
}
|