2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libsamplerate, libsndfile, fftw
|
2024-06-05 15:53:02 +00:00
|
|
|
, lv2, jdk_headless
|
2022-09-09 14:08:57 +00:00
|
|
|
, vamp-plugin-sdk, ladspaH, meson, ninja, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rubberband";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "3.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-06-18 07:06:33 +00:00
|
|
|
url = "https://breakfastquay.com/files/releases/${pname}-${version}.tar.bz2";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-2e+J4rjvn4WxOsPC+uww4grPLJ86nIxFzmN/K8leV2w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja jdk_headless ];
|
2024-01-25 14:12:00 +00:00
|
|
|
buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH lv2 ] ++ lib.optionals stdenv.isDarwin
|
2022-09-09 14:08:57 +00:00
|
|
|
(with darwin.apple_sdk.frameworks; [Accelerate CoreGraphics CoreVideo]);
|
2022-03-05 16:20:37 +00:00
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
# TODO: package boost-test, so we can run the test suite. (Currently it fails
|
|
|
|
# to find libboost_unit_test_framework.a.)
|
|
|
|
mesonFlags = [ "-Dtests=disabled" ];
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High quality software library for audio time-stretching and pitch-shifting";
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "https://breakfastquay.com/rubberband/";
|
2020-04-24 23:36:52 +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-09-09 14:08:57 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|