staruml: 6.3.0 -> 6.3.1 (#365170)
[NixPkgs.git] / pkgs / applications / networking / cluster / cni / default.nix
blobbe96dfdbe5628138c15bb025d1cc4fd7fc3db80b
2   lib,
3   fetchFromGitHub,
4   buildGoModule,
5 }:
7 buildGoModule rec {
8   pname = "cni";
9   version = "1.2.3";
11   src = fetchFromGitHub {
12     owner = "containernetworking";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-ocSc1fhbBB8YRxVVOvYMombOOkLMdfv9V4GYbf8kwIE=";
16   };
18   vendorHash = "sha256-/aPx8NgGkJ1irU0LGzmYTlsiX2U5or24Vl1PGHWuDyE=";
20   subPackages = [
21     "./cnitool"
22   ];
24   ldflags = [
25     "-s"
26     "-w"
27   ];
29   meta = with lib; {
30     description = "Container Network Interface - networking for Linux containers";
31     mainProgram = "cnitool";
32     license = licenses.asl20;
33     homepage = "https://github.com/containernetworking/cni";
34     maintainers = with maintainers; [
35       offline
36       vdemeester
37     ];
38     platforms = [
39       "x86_64-linux"
40       "aarch64-linux"
41     ];
42   };