Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

202.3. wiremix-0.11.0

PipeWire mixer and routing panel for the terminal

Version 0.11.0, release 2
Shelf audio-io — The sound stack: ALSA, PipeWire and WirePlumber, PulseAudio client, and portable audio I/O APIs
Phase 42_graphics (Graphics Stack), 56 of 189 in build order
Licence MIT OR Apache-2.0
Homepage https://github.com/tsowell/wiremix
Build time 3.1 SBU
Installed size 4.4 MiB in 4 files
Recipe ports/core/audio-io/wiremix/kpkgbuild

About

wiremix is a terminal mixer for PipeWire: every playback and recording stream, every device, their volumes, and which device each stream is routed to. ALSA’s alsamixer sees the card and not PipeWire’s graph, so this is the mixer that shows what is actually playing where. The package adds a desktop entry, Volume Mixer, which opens it in a terminal.

Why it is in KDOS

The comment above it in script/phases/42_graphics/packages.d/audio-io.txt:

PipeWire is the audio stack and alsamixer cannot see it: this is the mixer that shows the graph — every stream, its device and where it is routed.

Sources

Dependencies

Depends on: rust, pipewire, clang.

Required by: no port names it.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install wiremix'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/audio-io/wiremix.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/audio-io/wiremix
echo '62a7cace79c9af537e0917a6d4e5da66b2efe2b4abc5f08c0fbaed727acc8c9f  wiremix-0.11.0.tar.gz' | sha256sum -c -
echo 'b9ced0b576af188426f3e9c97d2acb1daadfa8c9d1c69ab9fe757f6b68cf056d  wiremix-vendor-0.11.0.tar.xz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/wiremix
SRC=$SRC_ROOT/wiremix-0.11.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf wiremix-0.11.0.tar.gz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

tar xf $PORT_SRC/${name}-vendor-${version}.tar.xz

export RUSTFLAGS="-C target-feature=-crt-static"
export LIBCLANG_PATH=/usr/lib

cargo build --release --frozen --offline
install -Dm755 target/release/wiremix $PKG/usr/bin/wiremix

install -d "$PKG/usr/share/applications"
cat > "$PKG/usr/share/applications/wiremix.desktop" <<'ENTRY'
[Desktop Entry]
Type=Application
Name=Volume Mixer
GenericName=Audio Mixer
Comment=Volumes, devices and routing for PipeWire
Exec=wiremix
Icon=audio-x-generic
Terminal=true
Categories=AudioVideo;Mixer;Settings;
Keywords=audio;volume;mixer;pipewire;route;wiremix;
ENTRY
chmod 644 "$PKG/usr/share/applications/wiremix.desktop"

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/wiremix, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf wiremix-0.11.0-2.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/wiremix, and runs the triggers its paths call for.

Contents

Installed programs: wiremix.

Installed directories: /usr/share/licenses/wiremix.

Notes

The crates come from the vendor bundle, wiremix-vendor-<version>.tar.xz, made by ports/fetch with cargo vendor and unpacked into the top of the source tree; the build runs --frozen --offline (see Vendoring). The desktop entry is written by the recipe, as the tree does for terminal programs (see Desktop entries belong to the port).