Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 977 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8buildGoModule rec { 9 pname = "ctlptl"; 10 version = "0.8.42"; 11 12 src = fetchFromGitHub { 13 owner = "tilt-dev"; 14 repo = "ctlptl"; 15 rev = "v${version}"; 16 hash = "sha256-aMpQbWdAIRQ8mBQkzf3iGsLezU7jHVQK2KXzyBnUFJ0="; 17 }; 18 19 vendorHash = "sha256-kxayiAymEHnZ+b/a7JgUx3/I5gnNEdg+Vg5ymMO9JG8="; 20 21 nativeBuildInputs = [ installShellFiles ]; 22 23 subPackages = [ "cmd/ctlptl" ]; 24 25 ldflags = [ 26 "-s" 27 "-w" 28 "-X main.version=${version}" 29 ]; 30 31 postInstall = '' 32 installShellCompletion --cmd ctlptl \ 33 --bash <($out/bin/ctlptl completion bash) \ 34 --fish <($out/bin/ctlptl completion fish) \ 35 --zsh <($out/bin/ctlptl completion zsh) 36 ''; 37 38 meta = with lib; { 39 description = "CLI for declaratively setting up local Kubernetes clusters"; 40 homepage = "https://github.com/tilt-dev/ctlptl"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ svrana ]; 43 }; 44}