Packaging

Installing hi from a package: which channels exist, checking a download you did not build, what a package leaves for you to do, and where its files land. How each channel is built, signed, and published is the maintainer’s runbook, RELEASING.md.

Contents

Install channels

Live today: releases, the package repository, the Homebrew tap, and the nix flake; not the AUR. Tagged releases exist from v0.1.0 on, the apt/rpm/apk repository is live and signed at https://ivylikethevine.github.io/say-hi/{apt,rpm,apk}, brew install ivylikethevine/tap/say-hi installs from ivylikethevine/homebrew-tap, and nix run github:ivylikethevine/say-hi runs the repository’s own flake. A clone plus scripts/install.sh needs none of these (README.md’s Installation). Channels weighed and not shipped, with the reason, are RELEASING.md’s list.

Package repository

The same deb, rpm, and apk, served as an apt, a dnf, and an apk repository from the Pages site, so a package manager upgrades say-hi like anything else; the subscribe commands are in README.md’s Installation. Only the latest release is in the repository - older packages stay on their release pages - and a release candidate never reaches a subscriber.

Signed end to end. One GPG key, served as say-hi.asc, signs the rpm and the apt/rpm repository metadata; an RSA key, served as say-hi.rsa.pub, signs the apk and its APKINDEX. Which secret signs what, and how the keys were made, is RELEASING.md’s Package repository.

Check a key before trusting it. Both are served from the site the packages come from, so compare what you downloaded with the copies in this repository (packaging/gpg/say-hi.asc, packaging/apk/say-hi.rsa.pub):

gpg --show-keys --with-fingerprint say-hi.asc
#   38F0 C4F6 4C11 FE62 C6AD  E51A 97FE CA9A 5412 340F
sha256sum say-hi.rsa.pub
#   19ba56d74f8753e7409f0fb32e83926dc7aac1454f06ecab86ec49a7f5c58e67

No maintainer scripts, no conffiles, on purpose. Everything a user writes lives outside the package’s paths - the overlay under $XDG_CONFIG_HOME - and the package owns only files no user edits. So an upgrade is a plain file replacement with nothing to preserve, merge, or prompt about; tests/packaging/repo_test.sh’s upgrade cases, which write a ~/.config/say-hi/colors between two versions and check it after, keep that claim true.

deb / rpm / apk

Attached to every GitHub Release. Subscribe to the package repository or install the file:

sudo apt install ./say-hi_*_all.deb   # the version you downloaded

The apk is signed with a key apk verifies against /etc/apk/keys/, so Alpine users install the public key once and never pass --allow-untrusted:

wget -O /etc/apk/keys/say-hi.rsa.pub \
  https://ivylikethevine.github.io/say-hi/say-hi.rsa.pub
apk add ./say-hi_*_noarch.apk   # the version you downloaded

Homebrew tap

The tap is ivylikethevine/homebrew-tap: a plain repo with a Formula/ directory, so brew install ivylikethevine/tap/say-hi works with no review and no approval on Homebrew’s side. Then run hi --install once, as for any package. The formula declares no dependencies: ssh and base64 ship with macOS and any Linux that would install this.

The rc lines name the tree as <prefix>/opt/say-hi/libexec, the link Homebrew keeps on the current keg, not the versioned Cellar path under it, so they hold across brew upgrade. Lines an older hi wrote name the keg: hi --doctor warns about them and hi --install rewrites them. The block for a shared rc finds a Homebrew install under a default prefix (SETTINGS.md’s Keeping the overlay in a dotfile manager).

Each release (not a candidate) opens a PR against the tap with the new formula, checked by the tap’s own CI before it is merged, so the tap can trail a release by that merge. Bugs in hi go to this repository (SUPPORT.md), not the tap. How the formula is generated and gated is RELEASING.md’s Homebrew tap.

Nix flake

The repository is a flake, for x86_64 and aarch64 Linux and aarch64 macOS, so nix run starts hi with nothing installed and nix profile install puts it on PATH:

nix run github:ivylikethevine/say-hi -- --version
nix profile install github:ivylikethevine/say-hi

A release is the same ref with its tag on the end (github:ivylikethevine/say-hi/v1.0.0); hi --version names the commit either way, for the reason RELEASING.md’s Nix flake gives. From a profile, run hi --install once as for any package, and again after an upgrade: the rc line it writes names the store path of the version that wrote it.

With home-manager, the flake’s module does that wiring and keeps it in step with the package:

{
  imports = [ inputs.say-hi.homeManagerModules.default ];
  programs.say-hi.enable = true;
}

inputs.say-hi is this repository as a flake input (say-hi.url = "github:ivylikethevine/say-hi"). The module adds the package to home.packages and hi’s rc block, the lines hi --install writes, to programs.bash.initExtra, programs.zsh’s init, and programs.fish.interactiveShellInit, so each shell home-manager manages sources hi and one it does not is left alone. programs.say-hi.package swaps the package. The module writes no file of its own: settings stay in ~/.config/say-hi, and hi --configure edits them.

AUR

Not yet: AUR registration is closed to new accounts because of spam. Until it reopens, an Arch user runs makepkg -si in packaging/aur/say-hi-git and upgrades with git pull and the same command, or runs it over the PKGBUILD and SRCINFO attached to a release (the checkout’s aur/say-hi is a v0.0.0 template). The publishing gate for once it reopens is RELEASING.md’s AUR.

ubi / mise

Neither is a channel this project publishes to - both just point at the GitHub release. ubi’s auto-detection looks in the source tarball for a file named exactly say-hi, or one starting with it; the entry point is hi.sh, which matches neither, so it needs an explicit hint:

ubi --project ivylikethevine/say-hi --exe hi.sh
# or, through mise's ubi backend:
mise use "ubi:ivylikethevine/say-hi[exe=hi.sh]"

tests/packaging/packaging_ci_release_test.sh’s test_src_tarball_ships_an_executable_hi_sh holds the tree’s half: hi.sh at the tarball root, executable bit intact.

Verifying a release download

Releases ship a SHA256SUMS, signed build provenance, an SPDX SBOM, and a detached minisign signature over the sums (the offline half — no gh, no network, one static public key):

sha256sum -c --ignore-missing SHA256SUMS                        # the bytes match the release
minisign -Vm SHA256SUMS -P 'RWR016ARV233WIhkYGyz2ckhgS2NpsKVdepW//xAIKe1ib/M5nLCbOIN'
gh attestation verify say-hi_*_all.deb --repo ivylikethevine/say-hi # which CI run built them

That minisign line is load-bearing. release.yml’s publish job seds the public key out of it into every release body’s checklist, so the key has one copy in the tree; if the pattern stops matching, the job warns and the checklist points here instead. Keep it a single line starting minisign -Vm SHA256SUMS -P ', with the key in single quotes.

The sums and the attestation cover the deb, rpm, apk, and say-hi-<version>.tar.gz: gh attestation verify say-hi-*.tar.gz --repo ivylikethevine/say-hi answers for the sources as the line above does for the .deb. The other assets (the manifests, the SBOM, package-repo.tar.gz, and demo.gif, which release.yml’s demo job renders and publish attaches) are not in SHA256SUMS.

After installing from a package

The tree is root-owned and holds nobody’s settings. Each user runs, once:

hi --install

The package’s /usr/bin/hi is already on PATH and runs this tree, so the install makes no link of its own (and never touches a link a package owns). Answers go to ~/.config/say-hi/, never into the tree. hi --update refuses to move a packaged tree and points at the package manager. Under home-manager the module has done the wiring, and hi --configure is the whole of this step.

Saying hi to a packaged machine works whether or not anyone ran that. A session ships its own tree to every ssh target and runs out of that, so the package on the far end is neither needed nor read — it is there for that machine’s own shells, once a user there has run hi --install; its /etc/profile.d/say-hi.sh only tells a login shell where the tree is. tests/targets/install_methods_test.sh installs a real .deb, .rpm, and .apk on real targets and asserts exactly that: the session works, out of its own tree, and the installed one is untouched afterwards. Where every packaged file lands is below.

Packaged installs

Channel Tree hi Also
.deb, .rpm, .apk /usr/share/say-hi/ /usr/bin/hi → hi.sh /etc/profile.d/say-hi.sh (exports _HI_HOME), /usr/share/man/man1/hi.1.gz
install.sh --prefix <dir> $DESTDIR<dir>/say-hi/ (default /usr/share) $DESTDIR/usr/bin/hi the same profile snippet and man page; no rc files, no sudo
AUR (say-hi, say-hi-git) /usr/share/say-hi/, through install.sh --prefix /usr/bin/hi /usr/share/licenses/<package>/LICENSE.md
Homebrew #{libexec}/say-hi/ #{bin}/hi, a wrapper exporting _HI_HOME #{man1}/hi.1; no profile snippet
nix flake $out/share/say-hi/, through install.sh --prefix $out/bin/hi, the same wrapper $out/share/man/man1/hi.1.gz; no profile snippet

A package touches no user’s rc files: each user runs hi --install, or enables the flake’s home-manager module, which writes the same lines into the rc files home-manager generates. Adding a repository places /etc/apt/keyrings/say-hi.asc and /etc/apt/sources.list.d/say-hi.list, /etc/yum.repos.d/say-hi.repo, or /etc/apk/keys/say-hi.rsa.pub and a line in /etc/apk/repositories (Package repository).


This site uses Just the Docs, a documentation theme for Jekyll.