Skip to content

Add Nix, Scoop, DEB/RPM and AUR packaging - #439

Merged
fcoury merged 2 commits into
mainfrom
fcoury/package-distribution
Nov 6, 2026
Merged

fcoury merged 2 commits into
mainfrom
fcoury/package-distribution

Conversation

@fcoury

@fcoury fcoury commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Why

Today Red installs through Homebrew, the install scripts, or cargo install --git. People on Nix, Windows package managers, and Debian/Fedora-style distros have no native route, and the main red name is taken in most of those ecosystems (GNU ed ships red, and so does the Red programming language). This adds the packaging Red needs to show up in those channels, using red-editor as the command so it can sit next to the others.

What

  • Nix flake (flake.nix, packaging/nix/package.nix): nix run github:codersauce/red and nix profile add github:codersauce/red for x86-64 Linux, ARM64 Linux and Apple Silicon. A new Nix package workflow builds it and runs red-editor --self-check on all three.
  • Scoop bucket (bucket/red-editor.json): scoop bucket add codersauce https://github.com/codersauce/red, with checkver/autoupdate reading the signed SHA256SUMS.txt.
  • DEB and RPM (packaging/linux/): release.yml now builds x86-64 packages from the Linux release tarball with a pinned, checksum-verified nFPM, then installs each one (Ubuntu runner, Fedora 44 container) and runs the self-check before the draft is published. Both require glibc 2.34+, depend on ripgrep and install /usr/bin/red-editor. Their names start with red-, so they land in the signed checksum file with the other assets.
  • AUR (packaging/arch/): red-editor-bin PKGBUILD and .SRCINFO, published to the AUR separately.
  • README install sections for Nix, Scoop and the native packages, and a release-checklist section in docs/RELEASING.md covering the manual manifest bumps.

Homebrew and the install scripts are unchanged and still install red.

How to Test

  • nix build .#red-editor && NO_COLOR=1 ./result/bin/red-editor --self-check, or check the Nix package job on this PR.
  • Release packaging: run release.yml via workflow_dispatch against a test tag and confirm the DEB/RPM step passes and both files appear in the draft.
  • Scoop on Windows: scoop install https://raw.githubusercontent.com/codersauce/red/fcoury/package-distribution/bucket/red-editor.json, then red-editor --self-check and scoop uninstall red-editor.

@fcoury
fcoury merged commit d4108f3 into main Nov 6, 2026
22 checks passed
@fcoury
fcoury deleted the fcoury/package-distribution branch November 6, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant