nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6 installShellFiles, 7}: 8 9buildGoModule rec { 10 pname = "ctlptl"; 11 version = "0.9.0"; 12 13 src = fetchFromGitHub { 14 owner = "tilt-dev"; 15 repo = "ctlptl"; 16 rev = "v${version}"; 17 hash = "sha256-y957JaHg2SnDC6yvwI/0fBFjbEKOfKFsNqOOrqQe+TU="; 18 }; 19 20 vendorHash = "sha256-gJiarW1uYr5vl9nt+JN6/yRyYr9J0sfDVZcNLLcwPJY="; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 subPackages = [ "cmd/ctlptl" ]; 25 26 ldflags = [ 27 "-s" 28 "-w" 29 "-X main.version=${version}" 30 ]; 31 32 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 33 installShellCompletion --cmd ctlptl \ 34 --bash <($out/bin/ctlptl completion bash) \ 35 --fish <($out/bin/ctlptl completion fish) \ 36 --zsh <($out/bin/ctlptl completion zsh) 37 ''; 38 39 meta = { 40 description = "CLI for declaratively setting up local Kubernetes clusters"; 41 homepage = "https://github.com/tilt-dev/ctlptl"; 42 license = lib.licenses.asl20; 43 maintainers = with lib.maintainers; [ svrana ]; 44 }; 45}