From 4d0c1a9157eb313e40b5447193ffe44b909d13c4 Mon Sep 17 00:00:00 2001 From: lucasew Date: Thu, 30 Mar 2023 15:59:21 -0300 Subject: [PATCH] coder: mark as broken + refactoring Signed-off-by: lucasew --- pkgs/development/tools/coder/default.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/development/tools/coder/default.nix b/pkgs/development/tools/coder/default.nix index a96cf652df2..48e47dd0663 100644 --- a/pkgs/development/tools/coder/default.nix +++ b/pkgs/development/tools/coder/default.nix @@ -29,12 +29,9 @@ buildGoModule rec { hash = "sha256-nRmEXR9fjDxvpbnT+qpGeM0Cc/qW/kN53sKOXwZiBXY="; }; - subPackages = [ "cmd/..." ]; - vendorHash = "sha256-+AvmJkZCFovE2+5Lg98tUvA7f2kBHUMzhl5IyrEGuy8="; - # integration tests require network access - doCheck = false; + tags = [ "embed" ]; ldflags = [ "-s" @@ -42,6 +39,8 @@ buildGoModule rec { "-X github.com/coder/coder/buildinfo.tag=${version}" ]; + subPackages = [ "cmd/..." ]; + preBuild = '' export HOME=$TEMPDIR @@ -57,8 +56,6 @@ buildGoModule rec { popd ''; - tags = [ "embed" ]; - nativeBuildInputs = [ fixup_yarn_lock installShellFiles @@ -79,10 +76,15 @@ buildGoModule rec { wrapProgram $out/bin/coder --prefix PATH : ${lib.makeBinPath [ terraform ]} ''; - meta = with lib; { + # integration tests require network access + doCheck = false; + + meta = { 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 ]; + license = lib.licenses.agpl3; + maintainers = [ lib.maintainers.ghuntley lib.maintainers.urandom ]; + # Failed to download Chromium 109.0.5414.46 + broken = true; # At 2023-03-30 }; }