depot/third_party/nixpkgs/pkgs/development/tools/coder/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

37 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 ];
};
}