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