lol
1{ lib, fetchFromGitHub, buildGoModule }:
2
3buildGoModule rec {
4 name = "gvisor-containerd-shim-${version}";
5 version = "2019-10-09";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = "gvisor-containerd-shim";
10 rev = "f299b553afdd8455a0057862004061ea12e660f5";
11 sha256 = "077bhrmjrpcxv1z020yxhx2c4asn66j21gxlpa6hz0av3lfck9lm";
12 };
13
14 vendorSha256 = "11jai5jl024k7wbhz4a3zzdbvl0si07jwgwmyr8bn4i0nqx8ig2k";
15
16 buildPhase = ''
17 make
18 '';
19
20 checkPhase = ''
21 make test
22 '';
23
24 installPhase = ''
25 make install DESTDIR="$out"
26 '';
27
28 meta = with lib; {
29 description = "containerd shim for gVisor";
30 homepage = "https://github.com/google/gvisor-containerd-shim";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ andrew-d ];
33 platforms = [ "x86_64-linux" ];
34 };
35}