Merge pull request #130579 from NixOS/backport-127145-to-release-21.05

[Backport release-21.05] containerd: 1.5.1 -> 1.5.2
This commit is contained in:
adisbladis 2021-07-25 12:43:16 -05:00 committed by GitHub
commit ecd1adcea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 13 deletions

View File

@ -1,6 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, buildGoPackage , buildGoModule
, btrfs-progs , btrfs-progs
, go-md2man , go-md2man
, installShellFiles , installShellFiles
@ -8,19 +8,20 @@
, nixosTests , nixosTests
}: }:
buildGoPackage rec { buildGoModule rec {
pname = "containerd"; pname = "containerd";
version = "1.5.1"; version = "1.5.2";
outputs = [ "out" "man" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "containerd"; owner = "containerd";
repo = "containerd"; repo = "containerd";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-jVyg+fyMuDnV/TM0Z2t+Cr17a6XBv11aWijhsqMnA5s="; sha256 = "sha256-RDLAmPBjDHCx9al+gstUTrvKc/L0vAm8IEd/mvX5Als=";
}; };
goPackagePath = "github.com/containerd/containerd"; vendorSha256 = null;
outputs = [ "out" "man" ];
nativeBuildInputs = [ go-md2man installShellFiles util-linux ]; nativeBuildInputs = [ go-md2man installShellFiles util-linux ];
@ -28,11 +29,9 @@ buildGoPackage rec {
buildFlags = [ "VERSION=v${version}" "REVISION=${src.rev}" ]; buildFlags = [ "VERSION=v${version}" "REVISION=${src.rev}" ];
BUILDTAGS = [ ] BUILDTAGS = lib.optionals (btrfs-progs == null) [ "no_btrfs" ];
++ lib.optional (btrfs-progs == null) "no_btrfs";
buildPhase = '' buildPhase = ''
cd go/src/${goPackagePath}
patchShebangs . patchShebangs .
make binaries man $buildFlags make binaries man $buildFlags
''; '';

View File

@ -1,6 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, buildGoPackage , buildGoModule
, go-md2man , go-md2man
, installShellFiles , installShellFiles
, pkg-config , pkg-config
@ -14,7 +14,7 @@
, nixosTests , nixosTests
}: }:
buildGoPackage rec { buildGoModule rec {
pname = "runc"; pname = "runc";
version = "1.0.0-rc95"; version = "1.0.0-rc95";
@ -25,7 +25,7 @@ buildGoPackage rec {
sha256 = "sha256-q4sXcvJO9gyo7m0vlaMrwh7ZZHYa58FJy3GatWndS6M="; sha256 = "sha256-q4sXcvJO9gyo7m0vlaMrwh7ZZHYa58FJy3GatWndS6M=";
}; };
goPackagePath = "github.com/opencontainers/runc"; vendorSha256 = null;
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ]; nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ];
@ -36,7 +36,6 @@ buildGoPackage rec {
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
cd go/src/${goPackagePath}
patchShebangs . patchShebangs .
make ${toString makeFlags} runc man make ${toString makeFlags} runc man
runHook postBuild runHook postBuild