Merge pull request #200070 from urandom2/coder

Fixes https://github.com/NixOS/nixpkgs/issues/198207
This commit is contained in:
Sandro 2022-11-08 12:27:10 +01:00 committed by GitHub
commit e67f6e8425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

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

View File

@ -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 { };