From c70539c601c9ccffb11e95997b41bb4c2c429c88 Mon Sep 17 00:00:00 2001 From: Chahatpreet Singh Date: Sat, 6 Jun 2026 20:51:19 +0000 Subject: [PATCH] atmos: 1.194.1 -> 1.220.0 - Disable CGO (`env.CGO_ENABLED = 0;`) to align with upstream's release process and prevent transitive dependencies (like `hid`) from pulling in unnecessary hardware-specific C libraries (`udev`, `libusb`). - Restrict `subPackages` to `.` to prevent the Go builder from attempting to build internal repository tools (e.g., `tools/gomodcheck`) that are not part of the main module scope. --- pkgs/by-name/at/atmos/package.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/at/atmos/package.nix b/pkgs/by-name/at/atmos/package.nix index 78e6c6c27e68..30012e5d8ef6 100644 --- a/pkgs/by-name/at/atmos/package.nix +++ b/pkgs/by-name/at/atmos/package.nix @@ -7,16 +7,20 @@ buildGoModule (finalAttrs: { pname = "atmos"; - version = "1.194.1"; + version = "1.220.0"; src = fetchFromGitHub { owner = "cloudposse"; repo = "atmos"; tag = "v${finalAttrs.version}"; - hash = "sha256-vQVkuvmqVbwvpcfzgNfI0aGKhEIaQC2626nBppoNsuM="; + hash = "sha256-kUCSa6Kw8wfGfMi3swqwt9mT0ZmniQVE/h5XWkjh+SM="; }; - vendorHash = "sha256-5ScxdWUoxs4unQ0IdTpQ0s6Dr0uOmdaRmYRWknVUGOU="; + vendorHash = "sha256-X8R0hRTDKvKmBWgV4ujVQrHIE935wG6sogQAzv2fdTg="; + + env.CGO_ENABLED = 0; # Compiles a pure statically linked Go binary. + + subPackages = [ "." ]; # Speeds up the build. ldflags = [ "-s"