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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user