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