From a2501c3561193045e7654bbb169d52a23c871282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cillian=20de=20R=C3=B3iste?= Date: Thu, 5 Jul 2012 23:29:45 +0200 Subject: [PATCH] Adding lv2 support LV2 is a portable plugin standard for audio systems, similar in scope to LADSPA, VST, AU, and others. The Calf audio plugin pack uses LV2 and Ardour3 has also been updated to support LV2 Plugins --- pkgs/applications/audio/ardour/ardour3.nix | 17 +++++++----- pkgs/applications/audio/calf/default.nix | 22 +++++++++++++++ .../libraries/audio/lilv/default.nix | 27 +++++++++++++++++++ .../libraries/audio/lv2/default.nix | 27 +++++++++++++++++++ .../libraries/audio/sratom/default.nix | 27 +++++++++++++++++++ .../libraries/audio/suil/default.nix | 27 +++++++++++++++++++ pkgs/development/libraries/serd/default.nix | 27 +++++++++++++++++++ pkgs/development/libraries/sord/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 16 +++++++++++ 9 files changed, 210 insertions(+), 7 deletions(-) create mode 100644 pkgs/applications/audio/calf/default.nix create mode 100644 pkgs/development/libraries/audio/lilv/default.nix create mode 100644 pkgs/development/libraries/audio/lv2/default.nix create mode 100644 pkgs/development/libraries/audio/sratom/default.nix create mode 100644 pkgs/development/libraries/audio/suil/default.nix create mode 100644 pkgs/development/libraries/serd/default.nix create mode 100644 pkgs/development/libraries/sord/default.nix diff --git a/pkgs/applications/audio/ardour/ardour3.nix b/pkgs/applications/audio/ardour/ardour3.nix index c34576016ad2..c803ec076187 100644 --- a/pkgs/applications/audio/ardour/ardour3.nix +++ b/pkgs/applications/audio/ardour/ardour3.nix @@ -2,8 +2,8 @@ , fftwSinglePrec, flac, glib, glibmm, gtk, gtkmm, jackaudio , libgnomecanvas, libgnomecanvasmm, liblo, libmad, libogg, librdf , librdf_raptor, librdf_rasqal, libsamplerate, libsigcxx, libsndfile -, libusb, libuuid, libxml2, libxslt, makeWrapper, pango, perl, pkgconfig -, python }: +, libusb, libuuid, libxml2, libxslt, lilv, lv2, makeWrapper, pango +, perl, pkgconfig, python, serd, sord, sratom, suil }: let # Ardour 3 Beta 4a @@ -19,11 +19,14 @@ stdenv.mkDerivation { sha256 = "0a68xb3l36m5908y3airxw1b3bymhrjrf1l492mgcvviq6pn7pmk"; }; - buildInputs = [ alsaLib aubio boost cairomm curl fftw fftwSinglePrec - flac glib glibmm gtk gtkmm jackaudio libgnomecanvas - libgnomecanvasmm liblo libmad libogg librdf librdf_raptor - librdf_rasqal libsamplerate libsigcxx libsndfile libusb libuuid - libxml2 libxslt pango perl pkgconfig python ]; + buildInputs = + [ alsaLib aubio boost cairomm curl fftw fftwSinglePrec + flac glib glibmm gtk gtkmm jackaudio libgnomecanvas + libgnomecanvasmm liblo libmad libogg librdf librdf_raptor + librdf_rasqal libsamplerate libsigcxx libsndfile libusb libuuid + libxml2 libxslt lilv lv2 pango perl pkgconfig python serd sord + sratom suil + ]; patchPhase = '' printf '#include "ardour/svn_revision.h"\nnamespace ARDOUR { const char* svn_revision = \"${rev}\"; }\n' > libs/ardour/svn_revision.cc diff --git a/pkgs/applications/audio/calf/default.nix b/pkgs/applications/audio/calf/default.nix new file mode 100644 index 000000000000..4b1f6dcd2687 --- /dev/null +++ b/pkgs/applications/audio/calf/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, cairo, expat, glib, gtk, jackaudio, ladspaH +, libglade, lv2, pkgconfig }: + +stdenv.mkDerivation rec { + name = "calf-${version}"; + version = "0.0.18.6"; + + src = fetchurl { + url = "mirror://sourceforge/calf/${name}.tar.gz"; + sha256 = "03w6jjkrr6w8da6qzd0x4dlkg295c6jxby500x4cj07wpbpk6irh"; + }; + + buildInputs = + [ cairo jackaudio gtk glib expat libglade ladspaH lv2 pkgconfig ]; + + meta = with stdenv.lib; { + homepage = http://calf.sourceforge.net; + description = "A set of high quality open source audio plugins for musicians"; + license = licenses.lgpl2; + maintainers = [ maintainers.goibhniu ]; + }; +} diff --git a/pkgs/development/libraries/audio/lilv/default.nix b/pkgs/development/libraries/audio/lilv/default.nix new file mode 100644 index 000000000000..a02a6ebabac0 --- /dev/null +++ b/pkgs/development/libraries/audio/lilv/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord, sratom }: + +stdenv.mkDerivation rec { + name = "lilv-${version}"; + version = "0.14.2"; + + src = fetchurl { + url = "http://download.drobilla.net/${name}.tar.bz2"; + sha256 = "0g9sg5f8xkkvsad0c6rh4j1k2b2hwsh83yg66f4qznxh43np7zlx"; + }; + + buildInputs = [ lv2 pkgconfig python serd sord sratom ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://drobilla.net/software/lilv; + description = "A C library to make the use of LV2 plugins"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + + }; +} diff --git a/pkgs/development/libraries/audio/lv2/default.nix b/pkgs/development/libraries/audio/lv2/default.nix new file mode 100644 index 000000000000..136a825eef90 --- /dev/null +++ b/pkgs/development/libraries/audio/lv2/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, gtk, libsndfile, pkgconfig, python }: + +stdenv.mkDerivation rec { + name = "lv2-${version}"; + version = "1.0.0"; + + src = fetchurl { + url = "http://lv2plug.in/spec/${name}.tar.bz2"; + sha256 = "0lfp7679wwqd49k4mjxwqslpfx5fz2q7akxqayg400zqn70whzl5"; + }; + + buildInputs = [ gtk libsndfile pkgconfig python ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://lv2plug.in; + description = "A plugin standard for audio systems"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + + }; +} diff --git a/pkgs/development/libraries/audio/sratom/default.nix b/pkgs/development/libraries/audio/sratom/default.nix new file mode 100644 index 000000000000..b23b58a3f820 --- /dev/null +++ b/pkgs/development/libraries/audio/sratom/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord }: + +stdenv.mkDerivation rec { + name = "sratom-${version}"; + version = "0.2.0"; + + src = fetchurl { + url = "http://download.drobilla.net/${name}.tar.bz2"; + sha256 = "12wi0ycjnn6mlddcp476wzr6k2bb4ig1489gg8h1k7v0w7d6ry1a"; + }; + + buildInputs = [ lv2 pkgconfig python serd sord ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://drobilla.net/software/sratom; + description = "A library for serialising LV2 atoms to/from RDF"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + + }; +} diff --git a/pkgs/development/libraries/audio/suil/default.nix b/pkgs/development/libraries/audio/suil/default.nix new file mode 100644 index 000000000000..a7300f541c4e --- /dev/null +++ b/pkgs/development/libraries/audio/suil/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord, sratom }: + +stdenv.mkDerivation rec { + name = "suil-${version}"; + version = "0.6.2"; + + src = fetchurl { + url = "http://download.drobilla.net/${name}.tar.bz2"; + sha256 = "1rqi16zqnaf30gr2gwb8wbhg8a2l3m5fllf7rabldmgj4b4jlyzp"; + }; + + buildInputs = [ lv2 pkgconfig python serd sord sratom ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://drobilla.net/software/suil; + description = "A lightweight C library for loading and wrapping LV2 plugin UIs"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + + }; +} diff --git a/pkgs/development/libraries/serd/default.nix b/pkgs/development/libraries/serd/default.nix new file mode 100644 index 000000000000..8deb26abc1da --- /dev/null +++ b/pkgs/development/libraries/serd/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, pcre, pkgconfig, python }: + +stdenv.mkDerivation rec { + name = "serd-${version}"; + version = "0.14.0"; + + src = fetchurl { + url = "http://download.drobilla.net/${name}.tar.bz2"; + sha256 = "023gsw0nwn2fh2vp7v2gwsmdwk6658zfl1ihdvr9xbayfcv88wlg"; + }; + + buildInputs = [ pcre pkgconfig python ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://drobilla.net/software/serd; + description = "A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + + }; +} diff --git a/pkgs/development/libraries/sord/default.nix b/pkgs/development/libraries/sord/default.nix new file mode 100644 index 000000000000..ee9d241424c8 --- /dev/null +++ b/pkgs/development/libraries/sord/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, pkgconfig, python, serd }: + +stdenv.mkDerivation rec { + name = "sord-${version}"; + version = "0.8.0"; + + src = fetchurl { + url = "http://download.drobilla.net/${name}.tar.bz2"; + sha256 = "0ncaplfr3wal9h8h3lafw0bhx34w046r7md74djgrysrm2h77pwr"; + }; + + buildInputs = [ pkgconfig python serd ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://drobilla.net/software/sord; + description = "A lightweight C library for storing RDF data in memory"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e21558ac5117..b4a4c5528cf2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4624,6 +4624,10 @@ let librdf = callPackage ../development/libraries/librdf { }; + lilv = callPackage ../development/libraries/audio/lilv { }; + + lv2 = callPackage ../development/libraries/audio/lv2 { }; + qrupdate = callPackage ../development/libraries/qrupdate { }; redland = pkgs.librdf_redland; @@ -4662,6 +4666,8 @@ let SDL_ttf = callPackage ../development/libraries/SDL_ttf { }; + serd = callPackage ../development/libraries/serd {}; + simgear = callPackage ../development/libraries/simgear {}; sfml_git = callPackage ../development/libraries/sfml { }; @@ -4684,6 +4690,8 @@ let soqt = callPackage ../development/libraries/soqt { }; + sord = callPackage ../development/libraries/sord {}; + speechd = callPackage ../development/libraries/speechd { }; speech_tools = callPackage ../development/libraries/speech-tools {}; @@ -4692,6 +4700,8 @@ let sphinxbase = callPackage ../development/libraries/sphinxbase { }; + sratom = callPackage ../development/libraries/audio/sratom { }; + srtp = callPackage ../development/libraries/srtp {}; sqlite = lowPrio (callPackage ../development/libraries/sqlite { @@ -4716,6 +4726,8 @@ let strigi = callPackage ../development/libraries/strigi {}; + suil = callPackage ../development/libraries/audio/suil { }; + suitesparse = callPackage ../development/libraries/suitesparse { }; sword = callPackage ../development/libraries/sword { }; @@ -6345,6 +6357,10 @@ let bvi = callPackage ../applications/editors/bvi { }; + calf = callPackage ../applications/audio/calf { + inherit (gnome) libglade; + }; + calibre = callPackage ../applications/misc/calibre { }; carrier = builderDefsPackage (import ../applications/networking/instant-messengers/carrier/2.5.0.nix) {