2009-09-21 10:58:36 +01:00
|
|
|
# TODO add plugins having various licenses, see http://www.vamp-plugins.org/download.html
|
|
|
|
|
2010-07-28 19:01:17 +01:00
|
|
|
{ stdenv, fetchurl, libsndfile, qt, fftw, librdf, rubberband
|
|
|
|
, libsamplerate, vampSDK, alsaLib, librdf_raptor, librdf_rasqal
|
|
|
|
, redland, jackaudio, pulseaudio, libmad, libogg, liblo, bzip2 }:
|
2009-10-28 14:06:56 +00:00
|
|
|
|
2009-09-21 10:58:36 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-10-28 14:06:56 +00:00
|
|
|
name = "sonic-visualizer-1.6";
|
2009-09-21 10:58:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://downloads.sourceforge.net/sv1/sonic-visualiser-1.6.tar.bz2;
|
|
|
|
sha256 = "1dbqqa7anii2jnjpfwm4sr83nn4bwmz68xw4n6clycsz5iqk52f5";
|
|
|
|
};
|
|
|
|
|
2010-07-28 19:01:17 +01:00
|
|
|
buildInputs =
|
|
|
|
[ libsndfile qt fftw /* should be fftw3f ??*/ bzip2 librdf rubberband
|
|
|
|
libsamplerate vampSDK alsaLib librdf_raptor librdf_rasqal redland
|
|
|
|
# optional
|
|
|
|
jackaudio
|
|
|
|
# portaudio
|
|
|
|
pulseaudio
|
|
|
|
libmad
|
|
|
|
libogg # ?
|
|
|
|
# fishsound
|
|
|
|
liblo
|
2009-09-21 10:58:36 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
qmake -makefile PREFIX=$out && make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/{bin,share/sv}
|
|
|
|
cp sv/sonic-visualiser $out/bin
|
|
|
|
cp -r sv/samples $out/share/sv/samples
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2009-10-28 14:06:56 +00:00
|
|
|
description = "View and analyse contents of music audio files";
|
2009-09-21 10:58:36 +01:00
|
|
|
homepage = http://www.sonicvisualiser.org/;
|
|
|
|
license = "GPLv2";
|
2010-07-28 19:01:17 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-21 10:58:36 +01:00
|
|
|
};
|
|
|
|
}
|