at 23.05-pre 37 lines 923 B view raw
1{ buildGoModule 2, fetchFromGitHub 3, installShellFiles 4, lib 5}: 6buildGoModule rec { 7 pname = "coder"; 8 version = "0.12.5"; 9 10 src = fetchFromGitHub { 11 owner = pname; 12 repo = pname; 13 rev = "v${version}"; 14 hash = "sha256-tPpWj2MV2LLIOGq+RTpHpLozgqv7gBgYD3jjehRXOvk="; 15 }; 16 17 # integration tests require network access 18 doCheck = false; 19 20 vendorHash = "sha256-3SStGCDpo+AS4PM9mbXM0EjsJ/3CVFQyb/NRK9RSZ3A="; 21 22 nativeBuildInputs = [ installShellFiles ]; 23 24 postInstall = '' 25 installShellCompletion --cmd coder \ 26 --bash <($out/bin/coder completion bash) \ 27 --fish <($out/bin/coder completion fish) \ 28 --zsh <($out/bin/coder completion zsh) 29 ''; 30 31 meta = with lib; { 32 description = "Remote development environments on your infrastructure provisioned with Terraform"; 33 homepage = "https://coder.com"; 34 license = licenses.agpl3; 35 maintainers = with maintainers; [ urandom ]; 36 }; 37}