2011-05-05 01:54:03 +02:00
|
|
|
# TODO add plugins having various licenses, see http://www.vamp-plugins.org/download.html
|
|
|
|
|
2012-06-24 16:54:51 +02:00
|
|
|
{ stdenv, fetchurl, alsaLib, bzip2, fftw, jackaudio, libX11, liblo
|
|
|
|
, libmad, libogg, librdf, librdf_raptor, librdf_rasqal, libsamplerate
|
|
|
|
, libsndfile, makeWrapper, pkgconfig, pulseaudio, qt4, redland
|
|
|
|
, rubberband, vampSDK
|
2011-05-05 01:54:03 +02:00
|
|
|
}:
|
|
|
|
|
2012-06-24 16:51:42 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sonic-visualiser-${version}";
|
|
|
|
version = "1.9";
|
2011-05-05 01:54:03 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-24 16:51:42 +02:00
|
|
|
url = "http://code.soundsoftware.ac.uk/attachments/download/194/${name}.tar.gz";
|
|
|
|
sha256 = "00igf7j6s8xfyxnlkbqma0yby9pknxqzy8cmh0aw95ix80cw56fq";
|
2011-05-05 01:54:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2011-08-11 00:39:53 +02:00
|
|
|
[ libsndfile qt4 fftw /* should be fftw3f ??*/ bzip2 librdf rubberband
|
2011-05-05 01:54:03 +02:00
|
|
|
libsamplerate vampSDK alsaLib librdf_raptor librdf_rasqal redland
|
2012-06-24 16:54:51 +02:00
|
|
|
pkgconfig
|
2011-05-05 01:54:03 +02:00
|
|
|
# optional
|
|
|
|
jackaudio
|
|
|
|
# portaudio
|
|
|
|
pulseaudio
|
|
|
|
libmad
|
|
|
|
libogg # ?
|
|
|
|
# fishsound
|
|
|
|
liblo
|
2011-05-06 00:01:20 +02:00
|
|
|
libX11
|
|
|
|
makeWrapper
|
2011-05-05 01:54:03 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
for i in sonic-visualiser svapp svcore svgui;
|
|
|
|
do cd $i && qmake -makefile PREFIX=$out && cd ..;
|
|
|
|
done
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/{bin,share/sonic-visualiser}
|
2011-05-05 01:54:03 +02:00
|
|
|
cp sonic-visualiser/sonic-visualiser $out/bin
|
|
|
|
cp -r sonic-visualiser/samples $out/share/sonic-visualiser/samples
|
|
|
|
wrapProgram $out/bin/sonic-visualiser --prefix LD_LIBRARY_PATH : ${libX11}/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "View and analyse contents of music audio files";
|
|
|
|
homepage = http://www.sonicvisualiser.org/;
|
|
|
|
license = "GPLv2";
|
2012-06-24 16:54:51 +02:00
|
|
|
maintainers =
|
|
|
|
[ stdenv.lib.maintainers.marcweber
|
|
|
|
stdenv.lib.maintainers.goibhniu
|
|
|
|
];
|
2011-05-05 01:54:03 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|