mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
3ec264787f
Co-authored-by: Colin Arnott <github@urandom.co.uk>
38 lines
970 B
Nix
38 lines
970 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, lib
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "coder";
|
|
version = "0.13.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-85eH3gKn1khMiksA/kL+fHt1WiaOzVntYCiL1PR/0Cg=";
|
|
};
|
|
|
|
# integration tests require network access
|
|
doCheck = false;
|
|
|
|
vendorHash = "sha256-tdqqGM2b8un4BFtvRJsmiIGdb1AOKP8XxcgGg2DilXA=";
|
|
|
|
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 = "Provision software development environments via Terraform on Linux, macOS, Windows, X86, ARM, and of course, Kubernetes";
|
|
homepage = "https://coder.com";
|
|
license = licenses.agpl3;
|
|
maintainers = with maintainers; [ ghuntley urandom ];
|
|
};
|
|
}
|