forked from mirrors/nixpkgs
38 lines
923 B
Nix
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 ];
|
|
};
|
|
}
|