default.nix (590B)
1 { stdenv, lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 name = "krew-${version}"; 5 version = "0.3.4"; 6 rev = "v${version}"; 7 8 subPackages = [ "cmd/krew" ]; 9 src = fetchFromGitHub { 10 inherit rev; 11 owner = "kubernetes-sigs"; 12 repo = "krew"; 13 sha256 = "0n10kpr2v9jzkz4lxrf1vf9x5zql73r5q1f1llwvjw6mb3xyn6ij"; 14 }; 15 vendorSha256 = "01jy73g087bng5xhbwd7pigsd44jl7pdfwf7ff43m9jsziknd39i"; 16 17 meta = { 18 description = "The package manager for 'kubectl plugins. "; 19 homepage = "https://github.com/kubernetes-sigs/krew"; 20 license = lib.licenses.asl20; 21 }; 22 }