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