-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Homebrew tap, Scoop bucket, Nix flake, and AUR PKGBUILD #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,40 @@ | ||||||
| { | ||||||
| description = "xenvsync - Encrypt, commit, and inject .env secrets"; | ||||||
|
|
||||||
| inputs = { | ||||||
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||||||
| flake-utils.url = "github:numtide/flake-utils"; | ||||||
| }; | ||||||
|
|
||||||
| outputs = { self, nixpkgs, flake-utils }: | ||||||
| flake-utils.lib.eachDefaultSystem (system: | ||||||
| let | ||||||
| pkgs = nixpkgs.legacyPackages.${system}; | ||||||
| in | ||||||
| { | ||||||
| packages.default = pkgs.buildGoModule { | ||||||
| pname = "xenvsync"; | ||||||
| version = "1.9.0"; | ||||||
| src = ./.; | ||||||
| vendorHash = null; | ||||||
|
|
||||||
| ldflags = [ | ||||||
| "-s" "-w" | ||||||
| "-X main.version=${self.packages.${system}.default.version}" | ||||||
|
||||||
| "-X main.version=${self.packages.${system}.default.version}" | |
| "-X main.version=${version}" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | ||||||
| # Maintainer: Md Nasim Sheikh <nasim.stg@gmail.com> | ||||||
| pkgname=xenvsync | ||||||
| pkgver=1.9.0 | ||||||
| pkgrel=1 | ||||||
| pkgdesc="Encrypt, commit, and inject .env secrets — no cloud required" | ||||||
| arch=('x86_64' 'aarch64') | ||||||
| url="https://github.com/nasimstg/xenvsync" | ||||||
| license=('MIT') | ||||||
| makedepends=('go') | ||||||
| source=("${pkgname}-${pkgver}.tar.gz::https://github.com/nasimstg/xenvsync/archive/v${pkgver}.tar.gz") | ||||||
| sha256sums=('SKIP') | ||||||
|
||||||
| sha256sums=('SKIP') | |
| sha256sums=('REPLACE_WITH_REAL_SHA256_FROM_updpkgsums') |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,19 @@ export default function Installation() { | |||||
| description="Multiple ways to install xenvsync on any platform." | ||||||
| /> | ||||||
|
|
||||||
| <Section title="Homebrew (macOS / Linux)"> | ||||||
| <CodeBlock title="Install via Homebrew" language="bash"> | ||||||
| {`$ brew install nasimstg/tap/xenvsync`} | ||||||
| </CodeBlock> | ||||||
| </Section> | ||||||
|
|
||||||
| <Section title="Scoop (Windows)"> | ||||||
| <CodeBlock title="Install via Scoop" language="bash"> | ||||||
| {`$ scoop bucket add nasimstg https://github.com/nasimstg/scoop-bucket | ||||||
| $ scoop install xenvsync`} | ||||||
| </CodeBlock> | ||||||
| </Section> | ||||||
|
|
||||||
| <Section title="npm (Quickest)"> | ||||||
| <CodeBlock title="Install globally" language="bash"> | ||||||
| {`$ npm install -g @nasimstg/xenvsync`} | ||||||
|
|
@@ -87,6 +100,24 @@ $ make build`} | |||||
| </p> | ||||||
| </Section> | ||||||
|
|
||||||
| <Section title="Nix Flake"> | ||||||
| <CodeBlock title="Run with Nix" language="bash"> | ||||||
| {`# Run without installing | ||||||
| $ nix run github:nasimstg/xenvsync | ||||||
|
|
||||||
| # Add to your flake inputs | ||||||
|
||||||
| # Add to your flake inputs | |
| # Install into your user profile |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -60,6 +60,15 @@ const searchIndex: SearchEntry[] = [ | |||||||||||||
| }, | ||||||||||||||
|
|
||||||||||||||
| // Installation | ||||||||||||||
| { | ||||||||||||||
| href: "/docs/installation", | ||||||||||||||
| title: "Installation", | ||||||||||||||
| section: "Docs", | ||||||||||||||
| 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.", | ||||||||||||||
|
||||||||||||||
| "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
AI
Mar 31, 2026
There was a problem hiding this comment.
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.
| 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.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vendorHash = nullwill causebuildGoModulebuilds (and thusnix 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 setvendorHashto that value so the flake is usable for end users.