3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/coder/default.nix
2022-11-10 21:08:37 +08:00

38 lines
923 B
Nix

{ buildGoModule
, fetchFromGitHub
, installShellFiles
, lib
}:
buildGoModule rec {
pname = "coder";
version = "0.12.5";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-tPpWj2MV2LLIOGq+RTpHpLozgqv7gBgYD3jjehRXOvk=";
};
# 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 ];
};
}