nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 libsamplerate,
7 libsndfile,
8 fftw,
9 lv2,
10 jdk_headless,
11 vamp-plugin-sdk,
12 ladspaH,
13 meson,
14 ninja,
15}:
16
17stdenv.mkDerivation (finalAttrs: {
18 pname = "rubberband";
19 version = "4.0.0";
20
21 src = fetchurl {
22 url = "https://breakfastquay.com/files/releases/rubberband-${finalAttrs.version}.tar.bz2";
23 hash = "sha256-rwUDE+5jvBizWy4GTl3OBbJ2qvbRqiuKgs7R/i+AKOk=";
24 };
25
26 nativeBuildInputs = [
27 pkg-config
28 meson
29 ninja
30 jdk_headless
31 ];
32 buildInputs = [
33 libsamplerate
34 libsndfile
35 fftw
36 vamp-plugin-sdk
37 ladspaH
38 lv2
39 ];
40 makeFlags = [ "AR:=$(AR)" ];
41
42 # TODO: package boost-test, so we can run the test suite. (Currently it fails
43 # to find libboost_unit_test_framework.a.)
44 mesonFlags = [ "-Dtests=disabled" ];
45 doCheck = false;
46
47 meta = {
48 description = "High quality software library for audio time-stretching and pitch-shifting";
49 homepage = "https://breakfastquay.com/rubberband/";
50 # commercial license available as well, see homepage. You'll get some more optimized routines
51 license = lib.licenses.gpl2Plus;
52 maintainers = [ lib.maintainers.marcweber ];
53 platforms = lib.platforms.all;
54 };
55})