Skip to content

Add Homebrew tap, Scoop bucket, Nix flake, and AUR PKGBUILD#33

Merged
nasimstg merged 1 commit intomainfrom
feat/package-managers
Mar 31, 2026
Merged

Add Homebrew tap, Scoop bucket, Nix flake, and AUR PKGBUILD#33
nasimstg merged 1 commit intomainfrom
feat/package-managers

Conversation

@nasimstg
Copy link
Copy Markdown
Owner

Summary

  • Configures GoReleaser to auto-publish Homebrew formula to nasimstg/homebrew-tap and Scoop manifest to nasimstg/scoop-bucket on release
  • Adds flake.nix for NixOS / nix users (nix run github:nasimstg/xenvsync)
  • Adds AUR PKGBUILD for Arch Linux users
  • Updates README install section with all package managers (Homebrew, Scoop, npm, Go, Nix, AUR)
  • Updates website installation page and search index

Test plan

  • GoReleaser config validates (brews/scoops sections)
  • All existing tests pass
  • Lint clean
  • Homebrew formula auto-published on next tagged release (GoReleaser)
  • Scoop manifest auto-published on next tagged release (GoReleaser)

Closes #17

- Configure GoReleaser to auto-publish to Homebrew tap and Scoop bucket
- Add Nix flake for NixOS / nix users
- Add AUR PKGBUILD for Arch Linux
- Update README install section with all package managers
- Update website installation page and search index

Closes #17
Copilot AI review requested due to automatic review settings March 31, 2026 19:36
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
xenvsync Ready Ready Preview, Comment Mar 31, 2026 7:36pm

@nasimstg nasimstg merged commit 88fa08a into main Mar 31, 2026
13 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands xenvsync’s distribution and documentation across multiple package ecosystems by adding release automation (Homebrew/Scoop), native Nix packaging, and an AUR PKGBUILD, plus corresponding website/README installation updates.

Changes:

  • Configure GoReleaser to publish a Homebrew formula and Scoop manifest to dedicated repos.
  • Add Nix flake packaging and an Arch Linux AUR PKGBUILD.
  • Update README and website installation docs/search index to include the new install methods.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
website/src/components/Search.tsx Adds installation-related search entries for Homebrew/Scoop and Nix/AUR.
website/src/app/docs/installation/page.tsx Adds new install sections for Homebrew, Scoop, Nix, and AUR; updates upgrade commands.
README.md Updates install section and adds an AUR install details block; documents new packaging files.
packaging/aur/PKGBUILD Introduces an AUR build script to build/install xenvsync from a tagged source tarball.
flake.nix Adds a flake that builds xenvsync via buildGoModule and provides a dev shell.
.goreleaser.yml Adds brews and scoops publishers targeting the tap/bucket repos.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flake.nix
pname = "xenvsync";
version = "1.9.0";
src = ./.;
vendorHash = null;
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vendorHash = null will cause buildGoModule builds (and thus nix run github:nasimstg/xenvsync) to fail until a fixed vendor hash is provided. Compute the Go module vendor hash (e.g., by building once to get the expected hash) and set vendorHash to that value so the flake is usable for end users.

Suggested change
vendorHash = null;
vendorHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";

Copilot uses AI. Check for mistakes.
Comment thread flake.nix

ldflags = [
"-s" "-w"
"-X main.version=${self.packages.${system}.default.version}"
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ldflags pulls the version via self.packages.${system}.default.version, which is an unnecessary self-reference and makes the expression harder to follow. Prefer referencing the local version value (or a let version = "..."; binding) directly to keep evaluation simpler and avoid subtle recursion issues if the derivation structure changes.

Suggested change
"-X main.version=${self.packages.${system}.default.version}"
"-X main.version=${version}"

Copilot uses AI. Check for mistakes.
Comment thread packaging/aur/PKGBUILD
license=('MIT')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/nasimstg/xenvsync/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sha256sums=('SKIP') disables integrity checking for the release tarball and is likely to be rejected for an AUR release PKGBUILD. Please replace SKIP with the actual SHA-256 for the source tarball (e.g., via updpkgsums), so makepkg verifies downloads.

Suggested change
sha256sums=('SKIP')
sha256sums=('REPLACE_WITH_REAL_SHA256_FROM_updpkgsums')

Copilot uses AI. Check for mistakes.
{`# Run without installing
$ nix run github:nasimstg/xenvsync

# Add to your flake inputs
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment # Add to your flake inputs doesn't match the command shown (nix profile install ... installs into the user profile, it doesn't add an input to a flake). Update the comment and/or command so the snippet accurately describes either profile installation or flake input configuration.

Suggested change
# Add to your flake inputs
# Install into your user profile

Copilot uses AI. Check for mistakes.
heading: "Homebrew & Scoop",
keywords: ["homebrew", "brew", "scoop", "windows", "macos", "linux", "tap", "bucket"],
content:
"Install via Homebrew on macOS and Linux with brew install nasimstg/tap/xenvsync. Install via Scoop on Windows with scoop bucket add nasimstg and scoop install xenvsync.",
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search index content for Scoop omits the bucket URL (scoop bucket add nasimstg) but the installation page instructs scoop bucket add nasimstg https://github.com/nasimstg/scoop-bucket. Update this entry to match the actual installation instructions to avoid users seeing incomplete commands in search results.

Suggested change
"Install via Homebrew on macOS and Linux with brew install nasimstg/tap/xenvsync. Install via Scoop on Windows with scoop bucket add nasimstg and scoop install xenvsync.",
"Install via Homebrew on macOS and Linux with brew install nasimstg/tap/xenvsync. Install via Scoop on Windows with scoop bucket add nasimstg https://github.com/nasimstg/scoop-bucket and scoop install xenvsync.",

Copilot uses AI. Check for mistakes.
Comment on lines +95 to +97
keywords: ["nix", "flake", "nixos", "aur", "arch", "linux", "makepkg"],
content:
"Install with Nix using nix run github:nasimstg/xenvsync or add to your flake inputs. Arch Linux users can build from AUR with makepkg.",
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This search entry says users can "add to your flake inputs", but the installation page currently shows nix profile install ... (profile install, not flake inputs). Align the search snippet with the docs so search results don't give conflicting Nix guidance.

Suggested change
keywords: ["nix", "flake", "nixos", "aur", "arch", "linux", "makepkg"],
content:
"Install with Nix using nix run github:nasimstg/xenvsync or add to your flake inputs. Arch Linux users can build from AUR with makepkg.",
keywords: ["nix", "nixos", "aur", "arch", "linux", "makepkg"],
content:
"Install with Nix using nix profile install github:nasimstg/xenvsync. Arch Linux users can build from AUR with makepkg.",

Copilot uses AI. Check for mistakes.
@nasimstg nasimstg deleted the feat/package-managers branch April 1, 2026 03:19
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.

Homebrew tap, Scoop bucket, AUR, and Nix flake

2 participants