8 pname = "cni-plugin-flannel";
9 version = "1.5.1-flannel3";
11 src = fetchFromGitHub {
15 sha256 = "sha256-uYjBRfcNop84pbFoXxFa73GzC6U5wMxix3fTRFn7FsM=";
18 vendorHash = "sha256-ZBd7ngYfsmdSGHE9a0kiEB7SeYc9RfaU9MILK2r3cyg=";
23 "-X main.Version=${version}"
24 "-X main.Commit=${version}"
25 "-X main.Program=flannel"
29 mv $out/bin/cni-plugin $out/bin/flannel
33 doInstallCheck = true;
35 installCheckPhase = ''
36 runHook preInstallCheck
37 $out/bin/flannel 2>&1 | fgrep -q $version
38 runHook postInstallCheck
42 description = "flannel CNI plugin";
43 mainProgram = "flannel";
44 homepage = "https://github.com/flannel-io/cni-plugin/";
45 license = licenses.asl20;
46 platforms = platforms.linux;
47 maintainers = with maintainers; [ abbe ];