nerdctl: 0.9.0 -> 0.10.0

This commit is contained in:
06kellyjac 2021-07-02 08:12:14 +01:00
parent a62a631218
commit 3947bea4b0

View file

@ -10,23 +10,21 @@
buildGoModule rec { buildGoModule rec {
pname = "nerdctl"; pname = "nerdctl";
version = "0.9.0"; version = "0.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "containerd"; owner = "containerd";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-HHCCB0YTz0FtE9r8j2msD5BBijQvFi1OKlODtsiMNA4="; sha256 = "sha256-cqIIpdkQ6DF7DKXvwCoJBQKG0+lL8iP/Vx0q7rL8prg=";
}; };
vendorSha256 = "sha256-0+k1e7Sn+NYGAJDVUbUm0oedc1t2blezUhsjDIuIKvA="; vendorSha256 = "sha256-0+k1e7Sn+NYGAJDVUbUm0oedc1t2blezUhsjDIuIKvA=";
nativeBuildInputs = [ makeWrapper installShellFiles ]; nativeBuildInputs = [ makeWrapper installShellFiles ];
preBuild = let t = "github.com/containerd/nerdctl/pkg/version"; in ldflags = let t = "github.com/containerd/nerdctl/pkg/version"; in
'' [ "-s" "-w" "-X ${t}.Version=v${version}" "-X ${t}.Revision=<unknown>" ];
buildFlagsArray+=("-ldflags" "-s -w -X ${t}.Version=v${version} -X ${t}.Revision=<unknown>")
'';
# Many checks require a containerd socket and running nerdctl after it's built # Many checks require a containerd socket and running nerdctl after it's built
doCheck = false; doCheck = false;