1 { lib, buildGoModule, fetchFromGitHub }:
4 pname = "cni-plugin-flannel";
7 src = fetchFromGitHub {
11 sha256 = "sha256-9AVXm3+VJFLQwe7EHwI8LmWKxfX1r0yjmKeaReQvxR4=";
14 vendorHash = "sha256-DhvaXC/n4yiVDibB8kymzltNhEIxKdTsEDN9Sfc/wxU=";
18 "-X main.Version=${version}"
19 "-X main.Commit=${version}"
20 "-X main.Program=flannel"
24 mv $out/bin/cni-plugin $out/bin/flannel
28 doInstallCheck = true;
30 installCheckPhase = ''
31 runHook preInstallCheck
32 $out/bin/flannel 2>&1 | fgrep -q $version
33 runHook postInstallCheck
37 description = "flannel CNI plugin";
38 mainProgram = "flannel";
39 homepage = "https://github.com/flannel-io/cni-plugin/";
40 license = licenses.asl20;
41 platforms = platforms.linux;
42 maintainers = with maintainers; [ abbe ];