2020-03-17 17:42:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2019-11-08 07:59:58 +00: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 02:59:00 +01:00
|
|
|
vendorSha256 = "11jai5jl024k7wbhz4a3zzdbvl0si07jwgwmyr8bn4i0nqx8ig2k";
|
2019-11-08 07:59:58 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
make test
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install DESTDIR="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "containerd shim for gVisor";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/google/gvisor-containerd-shim";
|
2019-11-08 07:59:58 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ andrew-d ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|