From c01f00b3ff861d7cb8bb0011baaefaa1ee0bca17 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Mon, 21 Sep 2009 09:58:30 +0000 Subject: [PATCH] adding vamp sdk and rubberband svn path=/nixpkgs/trunk/; revision=17323 --- .../libraries/audio/vamp/default.nix | 25 +++++++++++++++++++ .../libraries/rubberband/default.nix | 19 ++++++++++++++ pkgs/top-level/all-packages.nix | 10 ++++++++ 3 files changed, 54 insertions(+) create mode 100644 pkgs/development/libraries/audio/vamp/default.nix create mode 100644 pkgs/development/libraries/rubberband/default.nix diff --git a/pkgs/development/libraries/audio/vamp/default.nix b/pkgs/development/libraries/audio/vamp/default.nix new file mode 100644 index 000000000000..b54680b3d3f6 --- /dev/null +++ b/pkgs/development/libraries/audio/vamp/default.nix @@ -0,0 +1,25 @@ +# set VAMP_PATH ? +# plugins availible on sourceforge and http://www.vamp-plugins.org/download.html (various licenses) +args: with args; +rec { + + vampSDK = stdenv.mkDerivation { + name = "vamp-sdk-2.0"; + + src = fetchurl { + url = mirror://sourceforge/vamp/files/vamp-plugin-sdk/2.0/vamp-plugin-sdk-2.0.tar.gz; + sha256 = "1bxi3dw3zb9896vsx256avzfwpad5csad36cfy5s1zmqkl130mkp"; + }; + + buildInputs = [pkgconfig libsndfile]; + + meta = { + description = "Audio processing plugin system for plugins that extract descriptive information from audio data"; + homepage = http://sourceforge.net/projects/vamp; + license = "BSD"; + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; + }; + +} diff --git a/pkgs/development/libraries/rubberband/default.nix b/pkgs/development/libraries/rubberband/default.nix new file mode 100644 index 000000000000..40e158660995 --- /dev/null +++ b/pkgs/development/libraries/rubberband/default.nix @@ -0,0 +1,19 @@ +args: with args; +stdenv.mkDerivation { + name = "rubberband-1.3"; + + src = fetchurl { + url = http://www.breakfastquay.com/rubberband/files/rubberband-1.3.tar.bz2; + sha256 = "0g1bihjzagp9mx9zppjyd9566dfdqh38a1ghwsd7c245hv2syri8"; + }; + + buildInputs = [pkgconfig libsamplerate libsndfile fftw vampSDK ladspaH]; + + meta = { + description = "high quality software library for audio time-stretching and pitch-shifting"; + homepage = http://www.breakfastquay.com/rubberband/index.html; + license = ["GPL"]; # commercial license availible as well, see homepage. You'll get some more optimized routines + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0b99b5189b8e..fa83b176f217 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4178,6 +4178,12 @@ let inherit fetchurl stdenv; }; + rubberband = import ../development/libraries/rubberband { + inherit fetchurl stdenv lib pkgconfig libsamplerate libsndfile ladspaH; + fftw = fftwSinglePrec; + inherit (vamp) vampSDK; + }; + schroedinger = import ../development/libraries/schroedinger { inherit fetchurl stdenv liboil pkgconfig; }; @@ -4276,6 +4282,10 @@ let inherit postgresql mysql sqlite; }); + vamp = import ../development/libraries/audio/vamp { + inherit fetchurl stdenv lib pkgconfig libsndfile; + }; + vtk = import ../development/libraries/vtk { inherit stdenv fetchurl cmake mesa; inherit (xlibs) libX11 xproto libXt;