nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 33 lines 1.2 kB view raw
1{ stdenv, fetchurl, fetchpatch, pkgconfig, libsamplerate, libsndfile, fftw 2, vamp-plugin-sdk, ladspaH }: 3 4stdenv.mkDerivation rec { 5 pname = "rubberband"; 6 version = "1.8.2"; 7 8 src = fetchurl { 9 url = "https://breakfastquay.com/files/releases/${pname}-${version}.tar.bz2"; 10 sha256 = "1jn3ys16g4rz8j3yyj5np589lly0zhs3dr9asd0l9dhmf5mx1gl6"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ]; 14 buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH ]; 15 16 # https://github.com/breakfastquay/rubberband/issues/17 17 # In master, but there hasn't been an official release 18 patches = [ 19 (fetchpatch { 20 url = "https://github.com/breakfastquay/rubberband/commit/419a9bcf7066473b0d31e9a8a81fe0b2a8e41fed.patch"; 21 sha256 = "0drkfb2ahi31g4w1cawgsjjz26wszgg52yn3ih5l2ql1g25dqqn9"; 22 }) 23 ]; 24 25 meta = with stdenv.lib; { 26 description = "High quality software library for audio time-stretching and pitch-shifting"; 27 homepage = "https://breakfastquay.com/rubberband/"; 28 # commercial license available as well, see homepage. You'll get some more optimized routines 29 license = licenses.gpl2Plus; 30 maintainers = [ maintainers.goibhniu maintainers.marcweber ]; 31 platforms = platforms.linux; 32 }; 33}