From a8cc51be4dbf21834284b08d488fe0cddb709f76 Mon Sep 17 00:00:00 2001 From: Colin Arnott Date: Mon, 7 Nov 2022 17:19:41 +0000 Subject: [PATCH] coder: init at 0.12.4 Fixes #198207 --- pkgs/development/tools/coder/default.nix | 37 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/tools/coder/default.nix diff --git a/pkgs/development/tools/coder/default.nix b/pkgs/development/tools/coder/default.nix new file mode 100644 index 000000000000..dd94e56665bd --- /dev/null +++ b/pkgs/development/tools/coder/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51a52a449159..0617b134f7e8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };