diff --git a/pkgs/development/tools/coder/default.nix b/pkgs/development/tools/coder/default.nix new file mode 100644 index 000000000000..dd94e56665bd --- /dev/null +++ b/pkgs/development/tools/coder/default.nix @@ -0,0 +1,37 @@ +{ buildGoModule +, fetchFromGitHub +, installShellFiles +, lib +}: +buildGoModule rec { + pname = "coder"; + version = "0.12.4"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + hash = "sha256-RqdnX0oYUmJAzF3FAKHOUNMY5m8FN63c4Z/VBfJrupI="; + }; + + # integration tests require network access + doCheck = false; + + vendorHash = "sha256-3SStGCDpo+AS4PM9mbXM0EjsJ/3CVFQyb/NRK9RSZ3A="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd coder \ + --bash <($out/bin/coder completion bash) \ + --fish <($out/bin/coder completion fish) \ + --zsh <($out/bin/coder completion zsh) + ''; + + meta = with lib; { + description = "Remote development environments on your infrastructure provisioned with Terraform"; + homepage = "https://coder.com"; + license = licenses.agpl3; + maintainers = with maintainers; [ urandom ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51a52a449159..0617b134f7e8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16623,6 +16623,8 @@ with pkgs; coan = callPackage ../development/tools/analysis/coan { }; + coder = callPackage ../development/tools/coder { }; + compile-daemon = callPackage ../development/tools/compile-daemon { }; complexity = callPackage ../development/tools/misc/complexity { };