2020-05-29 14:15:14 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, libsamplerate, libsndfile, fftw
|
2020-03-26 21:29:35 +01:00
|
|
|
, vamp-plugin-sdk, ladspaH }:
|
2010-07-28 20:01:17 +02:00
|
|
|
|
2020-05-29 14:15:14 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rubberband";
|
|
|
|
version = "1.8.2";
|
2009-09-21 11:58:30 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-05-29 14:15:14 +02:00
|
|
|
url = "https://breakfastquay.com/files/releases/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1jn3ys16g4rz8j3yyj5np589lly0zhs3dr9asd0l9dhmf5mx1gl6";
|
2009-09-21 11:58:30 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-03-26 21:29:35 +01:00
|
|
|
buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH ];
|
2009-09-21 11:58:30 +02:00
|
|
|
|
2020-05-29 14:15:14 +02:00
|
|
|
# https://github.com/breakfastquay/rubberband/issues/17
|
|
|
|
# In master, but there hasn't been an official release
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/breakfastquay/rubberband/commit/419a9bcf7066473b0d31e9a8a81fe0b2a8e41fed.patch";
|
|
|
|
sha256 = "0drkfb2ahi31g4w1cawgsjjz26wszgg52yn3ih5l2ql1g25dqqn9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2014-02-18 00:32:45 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 20:01:17 +02:00
|
|
|
description = "High quality software library for audio time-stretching and pitch-shifting";
|
2020-05-29 14:15:14 +02:00
|
|
|
homepage = "https://breakfastquay.com/rubberband/";
|
2014-02-18 00:32:45 +01:00
|
|
|
# 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;
|
2009-09-21 11:58:30 +02:00
|
|
|
};
|
|
|
|
}
|