Merge pull request #115589 from 06kellyjac/nerdctl
nerdctl: 0.6.1 -> 0.7.0
This commit is contained in:
commit
9e903ffd93
1 changed files with 10 additions and 10 deletions
|
@ -9,26 +9,26 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "nerdctl";
|
pname = "nerdctl";
|
||||||
version = "0.6.1";
|
version = "0.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AkihiroSuda";
|
owner = "AkihiroSuda";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-zexvTPEQw7iW1d3ahHmqTn+UaT/bJMlr1sVlWErc2ck=";
|
sha256 = "sha256-z5Ekryaa5KMShrjdsmFk9bXahtuc+6tec7dxH5/w7+A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-bX1GfKbAbdEAnW3kPNsbF/cJWufxvuhm//G88qJ3u08=";
|
vendorSha256 = "sha256-ovmVNtzTQbg141IvbaF/+k5WHxX8wuK7z5gH9l2g5UE=";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildFlagsArray = [
|
preBuild =
|
||||||
"-ldflags="
|
let
|
||||||
"-w"
|
t = "github.com/AkihiroSuda/nerdctl/pkg/version";
|
||||||
"-s"
|
in
|
||||||
"-X github.com/AkihiroSuda/nerdctl/pkg/version.Version=v${version}"
|
''
|
||||||
"-X github.com/AkihiroSuda/nerdctl/pkg/version.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;
|
||||||
|
|
Loading…
Reference in a new issue