Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, copilot-cli }:
buildGoModule rec { pname = "copilot-cli"; version = "1.33.0";
src = fetchFromGitHub { owner = "aws"; repo = pname; rev = "v${version}"; hash = "sha256-4LDeilWi3FzvrvHjEyQKQi1GxouSlzDY96yBuMfpsXM="; };
vendorHash = "sha256-EqgOyjb2raE5hW3h+czbsi/F9SVNDwPWM1L6GC7v6IY=";
nativeBuildInputs = [ installShellFiles ];
# follow LINKER_FLAGS in Makefile ldflags = [ "-s" "-w" "-X github.com/aws/copilot-cli/internal/pkg/version.Version=v${version}" "-X github.com/aws/copilot-cli/internal/pkg/cli.binaryS3BucketPath=https://ecs-cli-v2-release.s3.amazonaws.com" ];
subPackages = [ "./cmd/copilot" ];
postInstall = '' installShellCompletion --cmd copilot \ --bash <($out/bin/copilot completion bash) \ --fish <($out/bin/copilot completion fish) \ --zsh <($out/bin/copilot completion zsh) '';
passthru.tests.version = testers.testVersion { package = copilot-cli; command = "copilot version"; version = "v${version}"; };
meta = with lib; { description = "Build, Release and Operate Containerized Applications on AWS"; homepage = "https://github.com/aws/copilot-cli"; changelog = "https://github.com/aws/copilot-cli/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ jiegec ]; };}