git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #80318 from vandenoever/sv

sonic-visualiser

commitfc592a52cacfbf5f22e6479a22263983f5346ea6 authorgoibhniu <cillian.deroiste@gmail.com> dateMon 17 Feb 2020, 09:51 (7 years ago) parent5ef4af7528e27b
3 files changed+45−18
pkgs/applications/audio/sonic-visualiser/default.nix+18−18 pkgs/development/libraries/libfishsound/default.nix+25 pkgs/top-level/all-packages.nix+2
pkgs/applications/audio/sonic-visualiser/default.nix+18−18
@@ -2,21 +2,23 @@
22
33{ stdenv, fetchurl, alsaLib, bzip2, fftw, libjack2, libX11, liblo
44, libmad, libogg, librdf, librdf_raptor, librdf_rasqal, libsamplerate
5−, libsndfile, pkgconfig, libpulseaudio, qtbase, redland
6−, qmake, rubberband, serd, sord, vampSDK, fftwFloat
5+, libsndfile, pkgconfig, libpulseaudio, qtbase, qtsvg, redland
6+, rubberband, serd, sord, vampSDK, fftwFloat
7+, capnproto, liboggz, libfishsound, libid3tag, opusfile
8+, wrapQtAppsHook
79}:
810
911stdenv.mkDerivation rec {
1012 pname = "sonic-visualiser";
11− version = "2.4.1";
13+ version = "4.0.1";
1214
1315 src = fetchurl {
14− url = "https://code.soundsoftware.ac.uk/attachments/download/1185/${pname}-${version}.tar.gz";
15− sha256 = "06nlha70kgrby16nyhngrv5q846xagnxdinv608v7ga7vpywwmyb";
16+ url = "https://code.soundsoftware.ac.uk/attachments/download/2607/${pname}-${version}.tar.gz";
17+ sha256 = "14674adzp3chilymna236qyvci3b1zmi3wyz696wk7bcd3ndpsg6";
1618 };
1719
1820 buildInputs =
19− [ libsndfile qtbase fftw fftwFloat bzip2 librdf rubberband
21+ [ libsndfile qtbase qtsvg fftw fftwFloat bzip2 librdf rubberband
2022 libsamplerate vampSDK alsaLib librdf_raptor librdf_rasqal redland
2123 serd
2224 sord
@@ -26,23 +28,22 @@ stdenv.mkDerivation rec {
2628 libpulseaudio
2729 libmad
2830 libogg # ?
29− # fishsound
31+ libfishsound
3032 liblo
3133 libX11
34+ capnproto
35+ liboggz
36+ libid3tag
37+ opusfile
3238 ];
3339
34− nativeBuildInputs = [ pkgconfig qmake ];
40+ nativeBuildInputs = [ pkgconfig wrapQtAppsHook ];
3541
36− configurePhase = ''
37− for i in sonic-visualiser svapp svcore svgui;
38− do cd $i && qmake PREFIX=$out && cd ..;
39− done
40− '';
42+ enableParallelBuilding = true;
4143
42− installPhase = ''
43− mkdir -p $out/{bin,share/sonic-visualiser}
44− cp sonic-visualiser $out/bin/
45− cp -r samples $out/share/sonic-visualiser/
44+ # comment out the tests
45+ preConfigure = ''
46+ sed -i 's/sub_test_svcore_/#sub_test_svcore_/' sonic-visualiser.pro
4647 '';
4748
4849 meta = with stdenv.lib; {
@@ -51,6 +52,5 @@ stdenv.mkDerivation rec {
5152 license = licenses.gpl2Plus;
5253 maintainers = [ maintainers.goibhniu maintainers.marcweber ];
5354 platforms = platforms.linux;
54− broken = true;
5555 };
5656}
pkgs/development/libraries/libfishsound/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, fetchurl, libvorbis, speex, flac, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ name = "libfishsound-1.0.0";
5+
6+ src = fetchurl {
7+ url = "http://downloads.xiph.org/releases/libfishsound/${name}.tar.gz";
8+ sha256 = "1iz7mn6hw2wg8ljaw74f4g2zdj68ib88x4vjxxg3gjgc5z75f2rf";
9+ };
10+
11+ propagatedBuildInputs = [ libvorbis speex flac ];
12+
13+ nativeBuildInputs = [ pkgconfig ];
14+
15+ meta = with stdenv.lib; {
16+ homepage = https://xiph.org/fishsound/;
17+ description = ''libfishsound by itself is designed to handle raw codec streams from a lower level layer such as UDP datagrams. When these codecs are used in files, they are commonly encapsulated in Ogg to produce Ogg FLAC, Speex and Ogg Vorbis files.
18+
19+libfishsound is a wrapper around the existing codec libraries and provides a consistent, higher-level programming interface. It has been designed for use in a wide variety of applications; it has no direct dependencies on Ogg encapsulation, though it is most commonly used in conjunction with liboggz to decode or encode FLAC, Speex or Vorbis audio tracks in Ogg files, including Ogg Theora and Annodex.
20+
21+FishSound has been developed and tested on GNU/Linux, Darwin/MacOSX and Win32. It probably also works on other Unix-like systems via GNU autoconf. For Win32: nmake Makefiles, Visual Studio .NET 2003 solution files and Visual C++ 6.0 workspace files are all provided in the source distribution.'';
22+ platforms = platforms.unix;
23+ license = licenses.bsd3;
24+ };
25+}
pkgs/top-level/all-packages.nix+2
@@ -12440,6 +12440,8 @@ in
1244012440
1244112441 libfilezilla = callPackage ../development/libraries/libfilezilla { };
1244212442
12443+ libfishsound = callPackage ../development/libraries/libfishsound { };
12444+
1244312445 libfm = callPackage ../development/libraries/libfm { };
1244412446 libfm-extra = libfm.override {
1244512447 extraOnly = true;