3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/sonic-visualiser/default.nix

59 lines
1.6 KiB
Nix
Raw Normal View History

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