go-containerregistry: init at 0.4.1 (#115875)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Eric Bailey 2021-04-06 03:00:40 -05:00 committed by GitHub
parent 536080e34b
commit 341f795787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-containerregistry";
version = "0.4.1";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
hash = "sha256-3mvGHAPKDUmrQkBKwlxnF6PG0ZpZDqlM9SMkCyC5ytE=";
};
vendorSha256 = null;
subPackages = [ "cmd/crane" "cmd/gcrane" ];
buildFlagsArray = [
"-ldflags=-s -w -X github.com/google/go-containerregistry/cmd/crane/cmd.Version=${version} -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version=${version}"
];
# NOTE: no tests
doCheck = false;
meta = with lib; {
description = "A tool for interacting with remote images and registries";
homepage = "https://github.com/google/go-containerregistry";
license = licenses.apsl20;
maintainers = with maintainers; [ yurrriq ];
};
}

View file

@ -2487,6 +2487,8 @@ in
go-chromecast = callPackage ../applications/video/go-chromecast { };
go-containerregistry = callPackage ../development/tools/go-containerregistry { };
go-rice = callPackage ../tools/misc/go.rice {};
go-2fa = callPackage ../tools/security/2fa {};