mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
341f795787
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
32 lines
851 B
Nix
32 lines
851 B
Nix
{ 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 ];
|
|
};
|
|
}
|