Files
nixpkgs/pkgs/by-name/sq/squishyball/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

81 lines
2.2 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
stdenv,
autoreconfHook,
fetchFromGitLab,
fetchpatch,
flac,
libao,
libvorbis,
ncurses,
opusfile,
pkg-config,
}:
stdenv.mkDerivation {
pname = "squishyball";
version = "unstable-2021-01-05";
src = fetchFromGitLab {
domain = "gitlab.xiph.org";
owner = "xiph";
repo = "squishyball";
rev = "d3525c015abf123d55a7a209a40976538be9d402";
hash = "sha256-2tzfTPwfC/FE+nsXIkIyHSKXNkGwVPfERkFW83py1Dk=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
flac
libao
libvorbis
ncurses
opusfile
];
patches = [
./gnu-screen.patch
# Patch pending upstream inclusion for ncurses-6.3 support:
# https://gitlab.xiph.org/xiph/squishyball/-/issues/1
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://gitlab.xiph.org/xiph/squishyball/uploads/5609ceaf85ebb6dc297c0efe61b9a1b7/0001-mincurses.c-use-ncurses-API-to-enter-raw-mode-ncurse.patch";
sha256 = "06llp7cd77f4vvhz8qdld551dnlpjxf98j7rmp3i1x1kng4f0iy3";
})
];
postInstall = ''
# Why doesnt this happen automagically?
mkdir -p $out/share/man/man1
cp squishyball.1 $out/share/man/man1
'';
meta = {
description = "Tool to perform sample comparison testing on the command line";
longDescription = ''
squishyball is a simple command-line utility for performing
double-blind A/B, A/B/X or X/X/Y testing on the command line.
The user specifies two input files to be compared and uses the
keyboard during playback to flip between the randomized samples
to perform on-the-fly compar isons. After a predetermined
number of trials, squishyball prints the trial results to
stdout and exits. Results (stdout) may be redirected to a file
without affecting interactive use of the terminal.
squishyball can also be used to perform casual, non-randomized
comparisons of groups of up to ten samples; this is the default
mode of operation.
'';
homepage = "https://gitlab.xiph.org/xiph/squishyball";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ michalrus ];
platforms = lib.platforms.linux;
mainProgram = "squishyball";
};
}