2022-09-30 11:47:45 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, amazon-ecr-credential-helper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "amazon-ecr-credential-helper";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-ecr-credential-helper";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-Q+YAfCsq4/PoSzYMFhLDAsAfxlU7XR/vouHo42/D2eM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = null;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
modRoot = "./ecr-login";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/awslabs/amazon-ecr-credential-helper/ecr-login/version.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = amazon-ecr-credential-helper;
|
|
|
|
command = "docker-credential-ecr-login -v";
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "The Amazon ECR Docker Credential Helper is a credential helper for the Docker daemon that makes it easier to use Amazon Elastic Container Registry";
|
|
|
|
homepage = "https://github.com/awslabs/amazon-ecr-credential-helper";
|
2022-01-22 01:22:15 +00:00
|
|
|
license = licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "docker-credential-ecr-login";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|