squishyball: init at 19580 (#18354)

authored by Michal Rus and committed by Franz Pletz 6846b22b 9b26cb92

+85 -1
+3 -1
pkgs/applications/audio/opusfile/default.nix
··· 8 }; 9 10 nativeBuildInputs = [ pkgconfig ]; 11 - buildInputs = [ openssl libogg libopus ]; 12 13 meta = { 14 description = "High-level API for decoding and seeking in .opus files";
··· 8 }; 9 10 nativeBuildInputs = [ pkgconfig ]; 11 + buildInputs = [ openssl libogg ]; 12 + propagatedBuildInputs = [ libopus ]; 13 + patches = [ ./include-multistream.patch ]; 14 15 meta = { 16 description = "High-level API for decoding and seeking in .opus files";
+12
pkgs/applications/audio/opusfile/include-multistream.patch
···
··· 1 + diff -Naur a/include/opusfile.h b/include/opusfile.h 2 + --- a/include/opusfile.h 2014-04-29 19:07:09.000000000 +0200 3 + +++ b/include/opusfile.h 2016-09-05 17:50:15.147553798 +0200 4 + @@ -107,7 +107,7 @@ 5 + # include <stdarg.h> 6 + # include <stdio.h> 7 + # include <ogg/ogg.h> 8 + -# include <opus_multistream.h> 9 + +# include <opus/opus_multistream.h> 10 + 11 + /**@cond PRIVATE*/ 12 +
+48
pkgs/applications/audio/squishyball/default.nix
···
··· 1 + { stdenv, autoreconfHook, fetchsvn, flac, libao, libvorbis, ncurses 2 + , opusfile, pkgconfig 3 + }: 4 + 5 + stdenv.mkDerivation rec { 6 + name = "squishyball-${rev}"; 7 + rev = "19580"; 8 + 9 + src = fetchsvn { 10 + url = "https://svn.xiph.org/trunk/squishyball"; 11 + rev = rev; 12 + sha256 = "013vq52q9z6kpg9iyc2jnb3m2gihcjblvwpg4yj4wy1q2c05pzqp"; 13 + }; 14 + 15 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 16 + 17 + buildInputs = [ flac libao libvorbis ncurses opusfile ]; 18 + 19 + patches = [ ./gnu-screen.patch ]; 20 + 21 + postInstall = '' 22 + # Why doesn’t this happen automagically? 23 + mkdir -p $out/share/man/man1 24 + cp squishyball.1 $out/share/man/man1 25 + ''; 26 + 27 + meta = with stdenv.lib; { 28 + description = "A tool to perform sample comparison testing on the command line"; 29 + longDescription = '' 30 + squishyball is a simple command-line utility for performing 31 + double-blind A/B, A/B/X or X/X/Y testing on the command line. 32 + The user specifies two input files to be compared and uses the 33 + keyboard during playback to flip between the randomized samples 34 + to perform on-the-fly compar‐ isons. After a predetermined 35 + number of trials, squishyball prints the trial results to 36 + stdout and exits. Results (stdout) may be redirected to a file 37 + without affecting interactive use of the terminal. 38 + 39 + squishyball can also be used to perform casual, non-randomized 40 + comparisons of groups of up to ten samples; this is the default 41 + mode of operation. 42 + ''; 43 + homepage = https://svn.xiph.org/trunk/squishyball; 44 + license = licenses.gpl2Plus; 45 + maintainers = with maintainers; [ michalrus ]; 46 + platforms = platforms.linux; 47 + }; 48 + }
+20
pkgs/applications/audio/squishyball/gnu-screen.patch
···
··· 1 + diff -Naur a/main.c b/main.c 2 + --- a/main.c 2016-09-06 13:37:32.259895631 +0200 3 + +++ b/main.c 2016-09-07 01:41:51.014309863 +0200 4 + @@ -693,6 +693,11 @@ 5 + } 6 + 7 + /* set up terminal */ 8 + + if (!strncmp(getenv("TERM"), "screen", 6)) { 9 + + char term[256]; 10 + + snprintf(term, sizeof(term), "xterm%s", getenv("TERM") + 6); 11 + + setenv("TERM", term, 1); 12 + + } 13 + atexit(min_panel_remove); 14 + panel_init(pcm, test_files, test_mode, start, end>0 ? end : len, len, 15 + beep_mode, restart_mode, tests, running_score); 16 + @@ -1170,4 +1175,3 @@ 17 + fprintf(stderr,"Done.\n"); 18 + return 0; 19 + } 20 + -
+2
pkgs/top-level/all-packages.nix
··· 14780 14781 spideroak = callPackage ../applications/networking/spideroak { }; 14782 14783 ssvnc = callPackage ../applications/networking/remote/ssvnc { }; 14784 14785 viber = callPackage ../applications/networking/instant-messengers/viber { };
··· 14780 14781 spideroak = callPackage ../applications/networking/spideroak { }; 14782 14783 + squishyball = callPackage ../applications/audio/squishyball { }; 14784 + 14785 ssvnc = callPackage ../applications/networking/remote/ssvnc { }; 14786 14787 viber = callPackage ../applications/networking/instant-messengers/viber { };