1 { lib, buildGoModule, fetchFromGitHub, testers, amazon-ecr-credential-helper }:
4 pname = "amazon-ecr-credential-helper";
7 src = fetchFromGitHub {
9 repo = "amazon-ecr-credential-helper";
11 sha256 = "sha256-TRYBZiddnN6wCErSLKCr9JEH/Ldxg+Oh2hA63+EwRjo=";
16 modRoot = "./ecr-login";
21 "-X github.com/awslabs/amazon-ecr-credential-helper/ecr-login/version.Version=${version}"
24 passthru.tests.version = testers.testVersion {
25 package = amazon-ecr-credential-helper;
26 command = "docker-credential-ecr-login -v";
30 description = "Amazon ECR Docker Credential Helper is a credential helper for the Docker daemon that makes it easier to use Amazon Elastic Container Registry";
31 homepage = "https://github.com/awslabs/amazon-ecr-credential-helper";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ kalbasit ];
34 mainProgram = "docker-credential-ecr-login";