2020-03-17 18:42:54 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2019-11-08 08:59:58 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
name = "gvisor-containerd-shim-${version}";
|
|
|
|
version = "2019-10-09";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "gvisor-containerd-shim";
|
|
|
|
rev = "f299b553afdd8455a0057862004061ea12e660f5";
|
|
|
|
sha256 = "077bhrmjrpcxv1z020yxhx2c4asn66j21gxlpa6hz0av3lfck9lm";
|
|
|
|
};
|
|
|
|
|
2020-05-01 03:59:00 +02:00
|
|
|
vendorSha256 = "11jai5jl024k7wbhz4a3zzdbvl0si07jwgwmyr8bn4i0nqx8ig2k";
|
2019-11-08 08:59:58 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make test
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install DESTDIR="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "containerd shim for gVisor";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/google/gvisor-containerd-shim";
|
2019-11-08 08:59:58 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ andrew-d ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|