2022-11-21 17:40:18 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "coder";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.17.1";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-FHBaefwSGZXwn1jdU7zK8WhwjarknvyeUJTlhmk/hPM=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# integration tests require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
vendorHash = "sha256-+AvmJkZCFovE2+5Lg98tUvA7f2kBHUMzhl5IyrEGuy8=";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
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; {
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Provision software development environments via Terraform on Linux, macOS, Windows, X86, ARM, and of course, Kubernetes";
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://coder.com";
|
|
|
|
license = licenses.agpl3;
|
2022-12-17 10:02:37 +00:00
|
|
|
maintainers = with maintainers; [ ghuntley urandom ];
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
}
|