Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 808 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6 7buildGoModule rec { 8 pname = "cni"; 9 version = "1.3.0"; 10 11 src = fetchFromGitHub { 12 owner = "containernetworking"; 13 repo = pname; 14 rev = "v${version}"; 15 hash = "sha256-xeajsM8ZIlI6Otv9CQhPfYaVQwmJ5QcFEn1xt6e/ivQ="; 16 }; 17 18 vendorHash = "sha256-uo3ZwFdD6aJ0WDGmt51l3hs9agUnv1cIQY/KMlNe5nI="; 19 20 subPackages = [ 21 "./cnitool" 22 ]; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 ]; 28 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 }; 43}